Page 1 of 1
Restrict directory access
Posted: Fri Jun 25, 2004 10:20 am
by Tomi
How to set root directory for a user in Linux to restrict them from access other directory except their own directory in ftp access only?
Posted: Fri Jun 25, 2004 12:57 pm
by rewted
What you are wanting is to chroot ftp users.
If so it kinda depends on which FTP server you are using...
If you use proftpd you can chroot your users as such in your /etc/proftpd.conf:
DefaultRoot ~
Now if you wanted to chroot everyone but the user jimbob it would look like this:
DefaultRoot ~ !jimbob
dont forget to restart the server.
heres a pretty good howto to start with if you are using proftp.
http://www.debianhowto.de/howtos/en/pro ... oftpd.html