Restrict directory access
Moderator: General Moderators
Restrict directory access
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?
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
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