Koozali.org: home of the SME Server

Need to know how to lock an ftp user in a specific directory.

Offline beakersloco

  • ****
  • 142
  • +0/-0
I know that there was a crontib for version 6 that allowed the admin to lock people that ftp into the server into specific directories. I dont want them to vpn into the server and prefer that they log in thry FTP to access or drop files.

Anyone know how to do this in version 7 ?

I need to limit on a person by person basis  and be able to set there starting folder and make sure that they cant go out of that folder. Allow them to access anything in that folder but not be able to go above. In most cases I simply want to lock everyone into there home folder. Bu if possible I would like to be able to lock some users into a specific ibay.

Some of this I realize would be set by creating groups for ibay access , but if I can at least see how to lock a user in there directory that will be good enough for now. Then I can figure out how to get groups setup.




Thanks for any assistance.
« Last Edit: January 17, 2009, 04:05:24 AM by beakersloco »
All that's necessary for the forces of evil to win in the world is for enough good men to do nothing.???" Edmund Burke -Irish orator, philosopher, & politician


For the battle is not yours, but God's.   2 Chronicles 20:15

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: Need to know how to lock an ftp user in a specific directory.
« Reply #1 on: January 17, 2009, 03:24:05 PM »
Install smeserver-remoteuseraccess.

Read more at http://www.dungog.net/wiki/Smeserver-remoteuseraccess


Offline beakersloco

  • ****
  • 142
  • +0/-0
Re: Need to know how to lock an ftp user in a specific directory.
« Reply #2 on: January 17, 2009, 10:35:10 PM »
Thanks that worked like a charm when I log in using an ftp program. Now to figure out why the webftp contrib still lets the user wander.
All that's necessary for the forces of evil to win in the world is for enough good men to do nothing.???" Edmund Burke -Irish orator, philosopher, & politician


For the battle is not yours, but God's.   2 Chronicles 20:15

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: Need to know how to lock an ftp user in a specific directory.
« Reply #3 on: January 18, 2009, 12:28:35 AM »
I can't tell if you want to use "yes" or "no", but the links below imply that some code like this sample should get phpwebftp to respect your ftp chroot directives:
Code: [Select]
setprop webftp ForceFtpVirtualLocalhost yes
expand-template /etc/proftpd.conf

http://wiki.contribs.org/PhpWebFtp#Configuration
http://bugs.contribs.org/show_bug.cgi?id=4515

Offline beakersloco

  • ****
  • 142
  • +0/-0
Re: Need to know how to lock an ftp user in a specific directory.
« Reply #4 on: January 18, 2009, 06:10:08 AM »
Thanks ... it needed to be set to no in otherwise any user that used webftp is able to wander.

Thanks again.
« Last Edit: January 18, 2009, 06:14:29 AM by beakersloco »
All that's necessary for the forces of evil to win in the world is for enough good men to do nothing.???" Edmund Burke -Irish orator, philosopher, & politician


For the battle is not yours, but God's.   2 Chronicles 20:15