Thomas Vander Stichele
2006-Dec-19 09:45 UTC
[Dovecot] BUG: messages created with permissions not respecting umask
Using dovecot 1.0rc15, together with postfix and dovecot-lda. umask is set to 0007. This should ensure directories and files get created with read/write permissions for both user and group. However, dovecot-lda writes files with 600 permissions, instead of 660. So dovecot does not seem to respect the umask configuration property for local mail delivery. In my particular case, I have vmail:vmail own the mail directories, and a backup user part of the vmail group. However the backup user cannot read the mails and thus back them up properly. Suggestions: - respect the umask for file delivery as well - alternatively, take the parent directory's permissions, strip executable bits, and apply to file Thanks Thomas
Timo Sirainen
2006-Dec-22 22:25 UTC
[Dovecot] BUG: messages created with permissions not respecting umask
On 19.12.2006, at 11.45, Thomas Vander Stichele wrote:> umask is set to 0007. This should ensure directories and files get > created with read/write permissions for both user and group.umask setting isn't really working that well, since sometimes files are created with 0600 mode, sometimes 0660 and yet sometimes 0666.. I'll see if I can get this fixed before v1.0. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20061223/71fc2320/attachment.bin>