[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
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.
also sprach Timo Sirainen <tss@iki.fi> [2006.12.22.2225 +0100]:
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.
Any news on this? deliver still forces the mode of files to 0600.
-- martin | http://madduck.net/ | http://two.sentenc.es/
a qui sait comprendre, peu de mots suffisent. -- intelligenti pauca
spamtraps: madduck.bogus@madduck.net
On Thu, 2008-07-17 at 14:59 +0200, martin f krafft wrote:
also sprach Timo Sirainen <tss@iki.fi> [2006.12.22.2225 +0100]:
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.Any news on this? deliver still forces the mode of files to 0600.
I was thinking about delaying this issue until shared mailboxes are implemented.
participants (3)
-
martin f krafft
-
Thomas Vander Stichele
-
Timo Sirainen