[Dovecot] missing +r perm:L

Timo Sirainen tss at iki.fi
Fri Jul 8 23:37:44 EEST 2011


SELinux?

On 8.7.2011, at 23.32, Max Dunlap wrote:

> ls -lan:
> -rw-------  1 1002 1002     1148 2011-07-05 16:11 msg.zSMF:2,S
> 
> This file is owned by 1002 not 1 or 0
> 
> On Fri, 2011-07-08 at 10:12 +0200, Thomas Leuxner wrote:
>> On Thu, Jul 07, 2011 at 02:52:55PM -0500, Max Dunlap wrote:
>>> The permissions are:
>>> -rw------- 1 root root 7609 2011-07-05
>>> 16:06 /home/dlambert/Maildir/cur/msg.COmK:2,ST
>>> 
>> 
>> What's so difficult about this?
>> 
>> [ Log excerpt ]
>> Jul  7 13:44:18 mail-breakaway dovecot: IMAP(dlambert): open(/home/dlambert/Maildir/cur/msg.COmK:2,ST) failed: Permission denied
>> (euid=1002(dlambert) egid=1002(dlambert) missing +r perm: /home/dlambert/Maildir/cur/msg.COmK:2,ST)
>> 
>> [ Conf excerpt ]
>> auth default:
>>  passdb:
>>    driver: pam
>>  userdb:
>>    driver: passwd
>> 
>> You are accessing the maildir structure using UID 1002 but the directory
>> is owned by UID 1. Needs to be fixed on either side...
>> 
>> Please visit these links and have a look at the quote below:
>> 
>> http://wiki.dovecot.org/PasswordDatabase/PAM
>> http://wiki.dovecot.org/AuthDatabase/Passwd
>> 
>> [...] This uses the UID and GID fields from passwd, but home directory
>> is overridden. Also the default mail_location setting is overridden. 
>> 
>> Thomas
> 
> 



More information about the dovecot mailing list