[Dovecot] Permissions in shared folders
Timo Sirainen
tss at iki.fi
Tue Feb 8 19:39:30 EET 2011
On 8.2.2011, at 12.33, Lukas Haase wrote:
> namespace public {
> separator = .
> prefix = Shared.
> location = maildir:/var/mail/shared:CONTROL=~/Maildir/shared
location = maildir:/var/mail/shared:INDEX=~/Maildir/shared
> }
>
> Each workgroup should get a subfolder in "Shared". Until now, this works, I create .Group1, .Group2 and assign correct group permissions and ACL files.
>
> However, now a user from group1 wants to create a subfolder in his IMAP folder. Since the permissions for /var/mail/shared/.Group1 are correct (writeable to group1 and the user is member of group1 and 'k' ACL permissions are active) I would expect it to work.
>
> However, for obvious reasons, the *sub*folder is created as
>
> /var/mail/shared/.Group1.Subfolder
>
> so it is actually not a subfolder in sense of the filesystem but rather a folder inside /var/mail/shared
Yep.
> However, the user does (and should) not have write permissions to /var/mail/shared (only to /var/mail/shared/.Group1).
>
> Is there a way to overcome this problem? Why can't dovecot just use /var/mail/shared/.Group1/.Subfolder? Is there an option to do so? It would make everything a lot easier.
location = maildir:/var/mail/shared:INDEX=~/Maildir/shared:LAYOUT=fs
More information about the dovecot
mailing list