View Full Version : Restrict FTP users
foxfirediego
3rd August 2009, 00:44
How do I restrict users to access one specifc directory like
/var/www/web3/web/download/FTP_USER_NAME
instead of /var/www/web3/user/FTP_USER_NAME
thanks
bad_crow
3rd August 2009, 00:56
Hi,
With proftpd, there is an option to lock the user in his home directory (seek at DefaultRoot).
The user won't be able to go elsewhere. you can choose the user home directory when you create it with useradd, so the user will be locked into the directory you want him to be locked into but this option apply to all users.
Be aware that in creating the users with useradd, they'll have a valid shell by default, so they will be able to connect the computer. if you don't want that, use -s option and set the shell to /bin/false.
Was that what you wanted to know ?
foxfirediego
3rd August 2009, 02:51
That's actually one solution, but I meant to create users and set their own directory like that:
/var/www/web3/web/download/user1
/var/www/web3/web/download/user2
/var/www/web3/web/download/user3
But, I don't want user2 touch user3 files.
Just like in cpanel, when you create one new user, you set his own private path.
foxfirediego
3rd August 2009, 05:15
I want something like this:
http://www.proftpd.org/localsite/Userguide/linked/chroot.html
but for individual users, one with it's own directory.
note: download/user_name will be outside web/ so it will be public to internet access
thanks
till
3rd August 2009, 10:27
You can not do this in ispconfig 2 as the users are also used for email. You can e.g. create the linux users manually.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.