[Dovecot] Permission denied after dist-upgrade

Thomas Skowron thskowron at googlemail.com
Fri Feb 18 02:19:09 EET 2011


Am 17.02.2011 um 05:32 schrieb Stan Hoeppner:

> Have you done a full system reboot since the dist upgrade?  If not,
> IIRC, glibc hasn't been replaced yet and the old version is still
> running.  There are probably other libs that can't be replaced until a
> full restart as well.  Do a full reboot if you haven't already.  Then,
> if it's still not working...
> 

Damn it. It worked for like 10 minutes and then crashed again. I can't even explain
why it worked for a short time at all.
I believe I did like about 20 reboots in the last days, so libs should be loaded.

> ~# aptitude -v show dovecot-imapd dovecot-common

What I did is purging the packages dovecot (including imapd and common),
deleting everything that has to do with that and created every config from
scratch. I created a new user (new uid, new home), but the error still appears.

One thing I can't understand:

> 15311 open("/etc/passwd", O_RDONLY|O_CLOEXEC) = -1 EACCES (Permission denied)

Everyone can read /etc/passwd. Everyone, but not dovecot. Drives me crazy.


dovecot-imapd and dovecot-common are both version 1:1.2.15-4. So that should
be fine.

> ~# la /usr/lib/dovecot/

I believe you meant ls -la /usr/lib/dovecot

drwxr-xr-x  3 root root    4096 17. Feb 22:42 .
drwxr-xr-x 57 root root   36864 17. Feb 23:35 ..
-rwxr-xr-x  1 root root  114536 25. Jan 00:29 authtest
-rwxr-xr-x  1 root root   61904 25. Jan 00:29 checkpassword-reply
-rwxr-xr-x  1 root root  814736 25. Jan 00:29 convert-tool
-rwxr-xr-x  1 root root  962032 25. Jan 00:29 deliver
-rwxr-xr-x  1 root root  212736 25. Jan 00:29 dict
-rwxr-xr-x  1 root root  401376 25. Jan 00:29 dovecot-auth
-rwxr-xr-x  1 root root  929624 25. Jan 00:29 expire-tool
-rwxr-xr-x  1 root root     347 25. Jan 00:29 expire-tool.sh
-rwxr-xr-x  1 root root   62216 25. Jan 00:29 gdbhelper
-rwxr-xr-x  1 root root  319968 25. Jan 00:29 idxview
-rwxr-xr-x  1 root root 1018992 25. Jan 00:29 imap
-rwxr-xr-x  1 root root  213896 25. Jan 00:29 imap-login
-rwxr-xr-x  1 root root   97864 25. Jan 00:29 imap-utf7
-rwxr-xr-x  1 root root   65096 25. Jan 00:29 listview
-rwxr-xr-x  1 root root   65504 25. Jan 00:29 logview
-rwxr-xr-x  1 root root   90096 25. Jan 00:29 maildirlock
-rwxr-xr-x  1 root root  916200 25. Jan 00:29 managesieve
-rwxr-xr-x  1 root root  209872 25. Jan 00:29 managesieve-login
drwxr-xr-x  6 root root    4096 17. Feb 22:42 modules
-rwxr-xr-x  1 root root  939792 25. Jan 00:29 pop3
-rwxr-xr-x  1 root root  199112 25. Jan 00:29 pop3-login
-rwxr-xr-x  1 root root   89856 25. Jan 00:29 rawlog
-rwxr-xr-x  1 root root   65544 25. Jan 00:29 ssl-build-param
-rwxr-xr-x  1 root root   65096 25. Jan 00:29 threadview

> Do you have any pam or mysql errors in syslog with a similar time stamp
> to the dovecot errors?  Were you running 1.0.15 Lenny before the Squeeze
> upgrade or one of the 1.2.x Lenny backport versions?

I was using 1.0.15 before. No backport.
pam errors: none
mysql errors: none
It even seems to recognize if the password is correct. If I type in the wrong
password it tells me auth failed, but when it's the right one, it crashes.

> If you didn't change filesystem permissions or dovecot config parms,
> then it seems logical that you have a component mismatch after the
> upgrade, or something along those lines, that is causing permissions
> problems.  Check to make sure all of your dovecot components are of the
> same version.  If you're still running a backport version of dovecot,
> try installing the Squeeze version.  There could be a mismatch between
> apps and lib versions.

Versions seem to be okay. The only thing that has been updated on the
server is the kernel (2.6.26-2-xen-amd64). Could this be possibly a problem?


More information about the dovecot mailing list