Results 1 to 8 of 8
I setup VSftpd on my Fedora 12 box. I changed the home folder for the virtual user to "private", and did a chmod 777 on the "private" directory. So I ...
- 02-25-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 9
VSFTPD file permission question
I setup VSftpd on my Fedora 12 box. I changed the home folder for the virtual user to "private", and did a chmod 777 on the "private" directory. So I was assuming that if I logged in as the virtual user, I should be able to write to the "private" directory. When checking directory permissions it is: drwxrwxrwx. At this point I can only read documents in this directory. When I try to transfer a file using Filezilla I receive a 550 Permission Denied error.
What am I doing wrong?
- 02-25-2010 #2
is selinux running?
linux user # 503963
- 02-26-2010 #3Just Joined!
- Join Date
- Feb 2010
- Posts
- 9
I disabled SELinux using "setenforce=0"
Below is the directory attributes:
"drwxrwxrwx. 2 root root 4096 2010-02-25 15:40 private"
- 02-26-2010 #4
is write_enable set to yes inside your vsftpd settings? how about the logs? anything relevent in them?
linux user # 503963
- 02-26-2010 #5Just Joined!
- Join Date
- Feb 2010
- Posts
- 9
This is my vsftpd.conf file:
listen=YES
anonymous_enable=YES
local_umask=22
#connect_from_port_20=YES
#dirmessage_enable=YES
#
#pam_service_name must be uncommented for local login
pam_service_name=vsftpd
xferlog_enable=YES
listen=YES
local_enable=YES
write_enable=YES
tcp_wrappers=YES
- 02-26-2010 #6
perhaps you are missing some lines if you are using virtual users, like:
for some other ideas maybe this can help you out, Setup Virtual Users and Directories in VSFTPDCode:virtual_use_local_privs=YES
linux user # 503963
- 03-02-2010 #7Just Joined!
- Join Date
- Jun 2009
- Posts
- 11
My permissions for the folder:
drwxr-xr-x 3 vsftpd nogroup 4096 2010-02-15 13:30 vsftpd
Inside this dir for each user.... tomehb (being me hence diff permissions)
drwxr-xr-x 2 vsftpd nogroup 4096 2010-03-01 13:38 Simon
drwxr-x--- 2 vsftpd nogroup 4096 2010-03-01 23:21 tomehb
drwxr-xr-x 2 vsftpd nogroup 4096 2010-03-01 13:37 Yanny2
Configuration from vsftpd.conf
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
nopriv_user=vsftpd
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
guest_enable=YES
guest_username=vsftpd
local_root=/home/vsftpd/$USER
user_sub_token=$USER
virtual_use_local_privs=YES
ftpd_banner=Welcome to Tomehbs Secure FTP.
ssl_enable=YES
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
#implicit_ssl=YES
force_local_data_ssl=YES
force_local_logins_ssl=YES
rsa_cert_file=****
rsa_private_key_file=*****
- 03-03-2010 #8Just Joined!
- Join Date
- Apr 2009
- Posts
- 2
Don't know what your use case is, but for me an FTP server is a blast from the past. I use SSH/SFTP for everything. Much more secure. Lends itself to automation easily, etc.


Reply With Quote