Comment 3 for bug 74173

Revision history for this message
Maciej SÅ‚ojewski (mslonik) wrote :

Binary package hint: vsftpd

Shortly speaking:

"anon_umask" parameter does not work. It is expected that for new copied files to ftp host the file attibutes will change to value as specified with "anon_umask". Regardless of "anon_umask" value the new copied files attributes are set to 0600 (octal value).

Example:

vsftpd.conf :
(...)
anon_umask=022
(...)

should give:

-rw-r--r-- that is 0644 (octal value)

nevertheless it is still
-rw------ that is 0600 (octal value)

The practical implication is that after copying some files to ftp site nobody besides ftp site owner is able to see the files. It shouldn't be like this.

I've checked:
version 2.0.4 of vsftpd on Kubuntu 6.06 LTS
version 2.0.4 of vsftpd on Kubuntu 6.10
version 2.0.5 compiled from source on Kubuntu 6.06 LTS
version 2.0.5 compiled from source on Kubuntu 6.10

None of above worked properly. Problem was reported several times on internet forums (linuxquestions.org, ubuntuforums.org to give a few) by different people:
http://www.linuxquestions.org/questions/showthread.php?t=168393&highlight=anon_umask
http://ubuntuforums.org/showthread.php?t=224603&highlight=mslonik

Kind regards,
Maciej (mslonik)