Red Hat Bugzilla – Bug 197458
anon_umask and local_umask don't work
Last modified: 2007-11-30 17:07:26 EST
Description of problem:
anon_umask and local_umask don't work even when the file creation mode
is explicitly set as is the following example:
Files should upload as rw-rw-rw- but that is not the case.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Configure /etc/vsftpd/vsftpd.conf with the above options.
2. Upload a file as a local user.
Files get uploaded as rw-------.
Files should get uploaded as rw-rw-rw-.
I am mapping local users to the anonymous user, but not allowing
anonymous logins. I am also disabling SITE CHMOD so it can't be
the ftp client doing it.
Well... I can fix this but I don't know why: I was using:
which implements the default anyway. If I set:
then the umask and file_open_mode options work as expected.
However I don't know why these options should interfere with each other,
and I don't think they should.
I tried vsftpd-2.0.5-3 in configuration:
I put file to server as local user and file get uploaded with -rw-rw-rw-, as it
has to. Options chown_* have no efect.
Please send me all your configuration options.
Created attachment 135452 [details]
setting chown_uploads=NO will make this work, but as it is, it won't.
Section of commented lines above chown_uploads directive:
# If enabled, all anonymously uploaded files will have the
# ownership changed to the user specified in the setting chown_username. This
# is useful from an administrative, and perhaps security, standpoint. Note
# that this breaks the permission setting behaviour of the umask and
# file_open_mode directives, so use only if you need to chown uploads to a
# user other than the default anonymous user (ftp).
Now closing this bug as not a bug. If you have any consideration, please reopen