CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 4 - Server Support
  vsftpd anonymous file upload permissions

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  jhrozek
      jhrozek
vsftpd anonymous file upload permissions
#1
Newbie
Joined: 2007/5/27
From
Posts: 2
Hello,
I've got an ftp server with a directory for anonymous uploads. The directory is write-only with permissions set to drwx-wx-wx. My problem is, that all file uploads get permissions of -rw------- regardless of anon_umask setting in vsftpd.conf(5), I'd like them to have 644... I've tried various combinations of anon_umask and file_open_mode directives (even crazy ones like umask to 000 and file_open_mode=0777) but the permissions are still the same.

I I've tried to Google the problem but all posts seem to reference only the anon_umask option... Did I overlook something? Did anyone encounter a similar problem?

I'm running CentOS 4.5 with vsftpd-2.0.1-5.EL4.5

Thanks for any pointers...
Jakub

My vsftpd.conf file is attached below:
-----
# General settings
write_enable=YES
local_umask=022
dirmessage_enable=YES
listen=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=ftp
xferlog_std_format=YES

ftpd_banner=XXXXX

# Anonymous settings
anonymous_enable=YES
anon_upload_enable=YES
anon_umask=022
hide_ids=YES

# Security settings
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
nopriv_user=ftp_nopriv

# DoS protection
max_clients=10
max_per_ip=5
anon_max_rate=50000 # 50 kb per client
-----
Posted on: 2007/5/31 16:09
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com