Re: give one user access to another users home directory via ftp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris W. Parker wrote:
...
i've got a situation where i would like to give one user access to
another users home directory on RH9 via vs-ftp.
...
when they log in their root would be at
'/home/cparker/www/sites/websitea/'. in this way they would have access
to everything within the websitea tree but nothing else.
...
is this possible? and if so how do i set this up or where should i start
looking?


Yes it is possible. A more simple approach might be to setup vsftpd so that all users are chrooted to their home directory, you can do this by
setting the option in /etc/vsftpd/vsftpd.conf
chroot_local_user=YES


Then cross mount your /home/cparker/www/sites/websitea
under that users home dir.

For example:

cd /home/userA
mkdir /home/userA/public_html
mount -o bind /home/cparker/www/sites/websitea /home/userA/public_html


-Ben.





-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux