[Dovecot] missing +r perm:L

Max Dunlap mdunlap at breakawaysystems.com
Fri Jul 8 23:47:55 EEST 2011


I turned on more debugging:
Jul  8 15:45:18 mail-breakaway dovecot: imap-login: Login:
user=<ilambert>, method=PLAIN, rip=173.11.172.145, lip=173.11.172.148,
TLS
Jul  8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): Effective
uid=1001, gid=1001, home=/home/ilambert
Jul  8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): cydir: mailbox
location not given
Jul  8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): cydir: Couldn't
create mail storage : Root mail directory not given
Jul  8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): dbox: mailbox
location not given
Jul  8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): dbox: Couldn't
create mail storage : Root mail directory not given
Jul  8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): maildir: root
exists (/home/ilambert/Maildir)
Jul  8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): maildir++:
root=/home/ilambert/Maildir, index=, control=,
inbox=/home/ilambert/Maildir
Jul  8 15:46:07 mail-breakaway dovecot: IMAP(ilambert): Namespace :
Using permissions from /home/ilambert/Maildir: mode=0700 gid=-1
Jul  8 15:46:08 mail-breakaway dovecot: IMAP(ilambert):
open(/home/ilambert/Maildir/cur/msg.0umK:2,S) failed: Permission denied
(euid=1001(ilambert) egid=1001(ilambert) missing +r
perm: /home/ilambert/Maildir/cur/msg.0umK:2,S)
Jul  8 15:46:08 mail-breakaway dovecot: IMAP(ilambert):
open(/home/ilambert/Maildir/cur/msg.0umK:2,S) failed: Permission denied
(euid=1001(ilambert) egid=1001(ilambert) missing +r
perm: /home/ilambert/Maildir/cur/msg.0umK:2,S)
Jul  8 15:46:08 mail-breakaway dovecot: IMAP(ilambert): Disconnected:
Internal error occurred. Refer to server log for more information.
[2011-07-08 15:46:08] bytes=236/181183



On Fri, 2011-07-08 at 15:40 -0500, Max Dunlap wrote:
> Ubuntu 10.04
> 
> On Fri, 2011-07-08 at 23:37 +0300, Timo Sirainen wrote:
> > 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