[Dovecot] pop3 gives a permission denied error on chdir

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Wed May 20 16:19:25 EEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 20 May 2009, Kenneth Gonsalves wrote:

Well, there are lots of "permission denied" problems lately.

Are you really absolutely sure that user with uid 5000 may chdir into 
/home/vmail/example.com/john ??

I mean, make sure "su" may set uid to the user of UID 5000 (esp. the shell 
is a real shell, so (as root) # su user -c "echo OK"
displays "OK", then do as root #

su user -c 'cd /home/vmail/example.com/john && echo Dir:$(pwd)'

(and revert what you've did for testing on success)

Do run some protection stuff, e.g. SELinux or AppArmor or the like? 
Dovecot setuid()'s to uid 5000, then chdir()s there. Such stuff may 
prohibit this.

Or, do you have ACLs enabled in the filesystem? Or do you use a remote 
filesystem, which permissions probably lie to the client.

Are all files in /home/vmail/example.com/john owned by uid 5000 and r/w? 
No dead sym links, etc.pp?

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBShQDYHWSIuGy1ktrAQLywwgAkuZ8+Z6zHxpghYckbBtKGl9KWmFoB5g8
vTTNjb9Vtclrva3cPQmugW5h8hsgwl4amz3Pm0w37/XjBbzGVEBX/BSUidc0Q10y
pEa3praPPnasnPmp5lxRvY/dZLUSLVuOgNR4HGGt8lz5O0T3EbUUi9ryOR5wY2kJ
GvZXL+JSXlf7uJlvqFZfdBjhFjMCEWa4QeUCE9K+W/mLX4wzRuUzel3svOjLDU90
4TE06v+pka+hi5uNAq3O2JcOkgunuQZytPZpxJu5kIpwfJwwnKwcVTs+uungRKQH
2c/O2Py3eSeRv1AlR3cdrbvGp4jzqDMVs/ZL4WfUME3f98I51cSqSA==
=LpH0
-----END PGP SIGNATURE-----


More information about the dovecot mailing list