Re: [Dovecot] Problem with created ~/mail directory

2010-02-08 Thread Chris Adams
Once upon a time, Timo Sirainen said: > On Sun, 2010-02-07 at 12:02 -0600, Chris Adams wrote: > > > Also v2.0 handles this by copying the parent directory's permissions. > > Oh, actually I lied. When creating mailbox directories, it copies the > permissions from mail root directory. But if the ma

Re: [Dovecot] Problem with created ~/mail directory

2010-02-07 Thread Timo Sirainen
On Sun, 2010-02-07 at 12:02 -0600, Chris Adams wrote: > > Also v2.0 handles this by copying the parent directory's permissions. Oh, actually I lied. When creating mailbox directories, it copies the permissions from mail root directory. But if the mail root doesn't exist, it's created with 0700. I

Re: [Dovecot] Problem with created ~/mail directory

2010-02-07 Thread Chris Adams
Once upon a time, Timo Sirainen said: > On Fri, 2010-02-05 at 11:20 -0600, Chris Adams wrote: > > If a user doesn't have a ~/mail directory and logs in, the directory is > > created for them. However, it is created with insecure permissions, > > 0770 (full group access). > > > > The problem is t

Re: [Dovecot] Problem with created ~/mail directory

2010-02-06 Thread Timo Sirainen
On Fri, 2010-02-05 at 11:20 -0600, Chris Adams wrote: > If a user doesn't have a ~/mail directory and logs in, the directory is > created for them. However, it is created with insecure permissions, > 0770 (full group access). > > The problem is this bit in src/lib-storage/index/mbox/mbox-storage.

[Dovecot] Problem with created ~/mail directory

2010-02-05 Thread Chris Adams
If a user doesn't have a ~/mail directory and logs in, the directory is created for them. However, it is created with insecure permissions, 0770 (full group access). The problem is this bit in src/lib-storage/index/mbox/mbox-storage.c: #define CREATE_MODE 0770 /* umask() should limit it more