[Dovecot] failed: Permission denied missing +w perm: /home/mail_virtual/2001
hi there!
i'm trying to run dovecot 1.2.4 managesieve service with mysql auth. authentication is obviously going fine, i have debug_auth set to on and can see log lines indicating auth success:
2009-11-18 16:04:24 auth(default): Info: client in: AUTH 1 PLAIN service=pop3 secured lip=127.0.0.1 rip=127.0.0.1 lport=10100 rport=42497 resp=<hidden> 2009-11-18 16:04:24 auth-worker(default): Info: sql(jh@new.xlhost.de,127.0.0.1): query: SELECT alias as user, password, home as userdb_home, vuid as userdb_uid, vgid as userdb_gid FROM virtual_mailbox WHERE alias = 'jh@new.xlhost.de' 2009-11-18 16:04:24 auth(default): Info: client out: OK 1 user=jh@new.xlhost.de 2009-11-18 16:04:24 auth(default): Info: master in: REQUEST 1 27482 1 2009-11-18 16:04:24 auth-worker(default): Info: sql(jh@new.xlhost.de,127.0.0.1): SELECT home, vuid AS uid, vgid AS gid FROM virtual_mailbox WHERE alias = 'jh@new.xlhost.de' 2009-11-18 16:04:24 auth(default): Info: master out: USER 1 jh@new.xlhost.de home=/home/mail_virtual/2001 uid=2001 gid=2001 2009-11-18 16:04:24 pop3-login: Info: Login: user=<jh@new.xlhost.de>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
however then managesieve tries to chdir to the user's homedir, which fails:
2009-11-18 16:04:24 dovecot: Fatal: chdir(/home/mail_virtual/2001) failed: Permission denied (euid=2001 egid=2001 stat(/home/mail_virtual/2001) failed: Permission denied missing +w perm: /home/mail_virtual/2001) 2009-11-18 16:04:24 dovecot: Error: child 27589 (pop3) returned error 89 (Fatal failure)
the user's homedir /home/mail_virtual/2001 ist set to 705 (also tried 700, 755, 770, 775 and 777) but still not write access. the mail/homedirs are definitely writeable by their respective (virtual) owners because postfix/maildrop is delivering to it and courier imap is currently reading from it just fine.
any hints, please?
best regards, jürgen herrmann
XLhost.de - eXperts in Linux hosting ® <<
XLhost.de GmbH Jürgen Herrmann, Geschäftsführer Boelckestrasse 21, 93051 Regensburg, Germany
Geschäftsführer: Volker Geith, Jürgen Herrmann Registriert unter: HRB9918 Umsatzsteuer-Identifikationsnummer: DE245931218
Fon: +49 (0)800 XLHOSTDE [0800 95467833] Fax: +49 (0)800 95467830
WEB: http://www.XLhost.de IRC: #XLhost@irc.quakenet.org
On Wed, 2009-11-18 at 16:17 +0100, Jürgen Herrmann wrote:
2009-11-18 16:04:24 dovecot: Fatal: chdir(/home/mail_virtual/2001) failed: Permission denied (euid=2001 egid=2001 stat(/home/mail_virtual/2001) failed: Permission denied missing +w perm: /home/mail_virtual/2001)
so "ls -dln /home/mail_virtual/2001" actually shows that the owner and group is 2001?
Do you have SELinux or something similar enabled?
participants (2)
-
Jürgen Herrmann
-
Timo Sirainen