[NTLUG:Discuss] only the user see its directory on ftp
David Camm
bbai at onramp.net
Tue Feb 19 08:28:50 CST 2002
using wu-ftpd it's called 'guest' ftp and is well documented in the man
pages.
you need to do the following.
1. in /etc/ftpaccess, create a line like this:
guestgroup guests (or any other group name you choose)
2. in /etc/passwd:
for those users whom you want to be chrooted edit their home directory
definition to end in /./ - e.g. /home/foo/./
3. in /etc/group:
add these users into the group named in the guestgroup line in ftpaccess
david camm
advanced web systems
m m wrote:
>
> Hi all:
> How do I set up 'only the user see its directory' while they doing ftp?
> In order for apache to work (apache is pointing to /home/user/www), all the
> directories must to set read permission.
> in this case, when a user use a _powerful_ ftp client, login as the user,
> and then he can change directory up to parent directory, all other user
> directories/files will be able to see.
> Is there anyway to set the user only able to see it own directory/child
> directory and not allow to change to its parent directory (/home)?
> I am using RedHat 6.2, 2,2,14 kernel. with iptable firewall running.
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list