Results 1 to 2 of 2
Hi there,
I have setup a VSFTPD server (on Centos 5), with virtual users.
Now what I want to do is setup a second user to access the home folder ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-13-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 2
VSFTPD - virtual users, shared folder, read only users
Hi there,
I have setup a VSFTPD server (on Centos 5), with virtual users.
Now what I want to do is setup a second user to access the home folder of a primary user as read/download only.
So long story short... I have for read / write:
user1
-> /home/ftproot/user1 (home folder)
Then I would like to create user2 and have read only:
user2
-> /home/ftproot/user1
Now because the virtual users don't use regular permissions, I am not sure how to go about that.
I am sure I need to use a "per user" config option, and set the home folder, as well as some permissions related VSFTPD options... but just not sure how to do it.
Ideas?
- 02-14-2009 #2Linux Newbie
- Join Date
- Feb 2009
- Posts
- 101
useradd vsftpdguest
vi /etc/vsftpd/vsftpd.conf
guest_enable=YES
virtual_use_local_privs=YES
guest_username=vsftpdguest
user_config_dir=/etc/vsftpd/vsftpd_user_conf
# mkdir /etc/vsftpd/vsftpd_user_conf
cd /etc/vsftpd/vsftpd_user_conf
echo /home/user1 > user1
echo /home/user2 > user2
chmod 555 /home/user1 <-- just for read.
chmod 777 /home/user2 <-- full access.
try it


Reply With Quote
