Restrict directory access

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
Tomi
Forum Newbie
Posts: 4
Joined: Mon Mar 01, 2004 9:01 am

Restrict directory access

Post 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?
rewted
Forum Newbie
Posts: 2
Joined: Fri Jun 25, 2004 12:57 pm

Post 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
Post Reply