Click to See Complete Forum and Search --> : Limit FTP Access


digitized
10-01-2001, 07:07 AM
Hi,
I would like to limit a user's FTP access to their home directory only.(ex: /home/userjohn/) They do not log on locally to the machine, the user is only going to FTP web docs. When they ftp in, they go directly to their home directory, but currently they can go back, and the entire root of the server is also available to them. Is there a special group I should put them in or anything else I'm missing so that they Can Not surf the entire server.

thanks

element-x
10-01-2001, 09:41 AM
Depends on the FTP Daemon that you're using but if you're using ProFTPD (The wise choice) you'd add:

DefaultRoot ~

to your Global directives.

optimised
10-02-2001, 04:06 PM
Hey there,

Two things you may want to try.
A)change permissions to 0711 on folders you do not want folks to browse.
B)set up a change root environment - aka chroot jail See -> http://www.linuxdoc.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap29sec296.html

bye