give one user access to another users home directory via ftp
Ben Russo
ben at muppethouse.com
Tue May 18 16:03:57 UTC 2004
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.
More information about the redhat-list
mailing list