2.2.18 initial setup permissions problem
I'm using Dovecot 2.2.18, compiled from source, on CentOS 6.
I'm running into a permissions problem with my first rollout of Dovecot which has to do with directory permissions:
Oct 23 14:34:51 mail dovecot: imap(username): Error: stat(/home/username/Maildir/tmp) failed: Permission denied (euid=596(<unknown>) egid=97(dovecot) missing +x perm: /home/username/Maildir, dir owned by 500:500 mode=0700)
This being setup with the Dovecot wiki instructions. I may have misunderstood an initial setting.
If I change permissions to my personal Maildir directory struct to be dovecot:dovecot it works fine, but this seems unusual. Dovecot is running as root:
root 19176 0.0 0.1 2876 1096 ? Ss 14:28 0:00 /usr/local/sbin/dovecot
dovecot 19178 0.0 0.0 2780 996 ? S 14:28 0:00 dovecot/anvil
root 19179 0.0 0.1 2912 1144 ? S 14:28 0:00 dovecot/log
root 19225 0.0 0.1 3544 1776 ? S 14:38 0:00 dovecot/config
dovecot 19226 0.0 0.1 3332 1408 ? S 14:38 0:00 dovecot/auth
root 19227 0.0 0.0 2776 916 ? S 14:38 0:00 dovecot/ssl-params
I can't seem to figure this one out. Can someone point me in the right direction.
Thanks.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 23 Oct 2015, Forrest wrote:
I'm using Dovecot 2.2.18, compiled from source, on CentOS 6.
I'm running into a permissions problem with my first rollout of Dovecot which has to do with directory permissions:
Oct 23 14:34:51 mail dovecot: imap(username): Error: stat(/home/username/Maildir/tmp) failed: Permission denied (euid=596(<unknown>) egid=97(dovecot) missing +x perm: ^^^^^^^^^^^^^ /home/username/Maildir, dir owned by 500:500 mode=0700) ^^^^^^^
you have configured your user or Dovecot to use uid 596, but the user's Maildir is owned by uid 500 .
I can't seem to figure this one out. Can someone point me in the right direction.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVi3yq3z1H7kL/d9rAQKOlQf/SB/eakAhhwJJJHJQ6Lqzkslm4inj8aTg ZA2ldaMn9gn/eckpmEBiPGw1CpXQu1JXFY3LWcvA3GcRZse+5ZY2Ae6v6RvA7JaL vYzalFEdIMkkTDipvvDgtAzUCHGG1g3popZYj3WAWBtJoYUtmBuXX8gFZ1JQj5nC lJ+iV54SgyLEyCJtWbJpQ8NXDvp01HNW7/vdyfD5zXfecyecA72CILFLLYjztTkn 8Ih9ApTTi1AXdeGAXPvgRFa2ojLiJ1pt+gvh15APUDSP3QcHn8WQbaFgjoPWpoVQ 0oynQ1jxvMaRlKJWKBl6AlvrEZwBWkLm+T9y9mSeWvsvin+WjFnvMA== =bF/e -----END PGP SIGNATURE-----
On 10/26/15 5:30 AM, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 23 Oct 2015, Forrest wrote:
I'm using Dovecot 2.2.18, compiled from source, on CentOS 6.
I'm running into a permissions problem with my first rollout of Dovecot which has to do with directory permissions:
Oct 23 14:34:51 mail dovecot: imap(username): Error: stat(/home/username/Maildir/tmp) failed: Permission denied (euid=596(<unknown>) egid=97(dovecot) missing +x perm: ^^^^^^^^^^^^^ /home/username/Maildir, dir owned by 500:500 mode=0700) ^^^^^^^
you have configured your user or Dovecot to use uid 596, but the user's Maildir is owned by uid 500 .
I can't seem to figure this one out. Can someone point me in the right direction.
Interesting, in our setup at work, the Maildir is owned by the user, not dovecot. So why does that work and the above does not? Is it a setting?
I can grep through the configs -- just not sure what to look for here.
I didn't see anything in the dovecot.conf, though.
Thanks.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 26 Oct 2015, Forrest wrote:
On 10/26/15 5:30 AM, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 23 Oct 2015, Forrest wrote:
I'm using Dovecot 2.2.18, compiled from source, on CentOS 6.
I'm running into a permissions problem with my first rollout of Dovecot which has to do with directory permissions:
Oct 23 14:34:51 mail dovecot: imap(username): Error: stat(/home/username/Maildir/tmp) failed: Permission denied (euid=596(<unknown>) egid=97(dovecot) missing +x perm: ^^^^^^^^^^^^^ /home/username/Maildir, dir owned by 500:500 mode=0700) ^^^^^^^
you have configured your user or Dovecot to use uid 596, but the user's Maildir is owned by uid 500 .
I can't seem to figure this one out. Can someone point me in the right direction.
Interesting, in our setup at work, the Maildir is owned by the user, not dovecot. So why does that work and the above does not? Is it a setting?
At work your userdb is configured to return system users: http://wiki2.dovecot.org/SystemUsers by returning uid/gid per user, see http://wiki2.dovecot.org/UserDatabase
I can grep through the configs -- just not sure what to look for here. I didn't see anything in the dovecot.conf, though.
At home you seem to have a static global mail_uid/_gid or static userdb or do not return no uid/gid per user.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVi8nJHz1H7kL/d9rAQJPJQgAvTeoq707orJt68D0hkSGlx4DCePLPR10 KRaIfcZRGkU1G7ILkAn8s3oH6NPwUc8GoG80JYWLEu9pWbOlLDjRYeie4WaSvdhG hfuQabSBHpFD/otdxi+qSM3wBXfMP8BYNWrtjJ7HG06sbnTDBMo+pZiQizkLMnj0 lBgGk4FDsh1jeMQuDyeE3xNTxvHmSdUwDNhmeDgti6IuyEx6iU8O3MjwTQVj/GMK hdtqDnfIStfp1Qgou6j48t3Nl/OvRmskJmMNjRSrC0EMUN/IJq+waV3sxGTgxlFw 6kRksx3zPt7pIaUpI3lFIZVWiR2HeDrsT9OdlgxS6lqh2vVXe14tdQ== =f78e -----END PGP SIGNATURE-----
participants (2)
-
Forrest
-
Steffen Kaiser