hi timo very very good job you realize for the community here I have a very strange problem with doveadm I actually use a configuration file parameters in which the parameters are placed carefully My problem appears when I run this command doveadm expunge -A mailbox Trash savedbefore 30d i post command and result to the terminal [fakessh at r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(fakessh): Error: userdb lookup: connect(/var/run/dovecot//auth-userdb) failed: Permission denied (euid=514(fakessh) egid=100(users) missing +r perm: /var/run/dovecot//auth-userdb, euid is not dir owner) doveadm: Error: Failed to iterate through some users [root at r13151 ~]$ chmod +r /var/run/dovecot/auth-userdb [fakessh at r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(fakessh): Error: userdb lookup: connect(/var/run/dovecot//auth-userdb) failed: Permission denied (euid=514(fakessh) egid=100(users) missing +w perm: /var/run/dovecot//auth-userdb, euid is not dir owner) doveadm: Error: Failed to iterate through some users [root at r13151 ~]# chmod og+w /var/run/dovecot/auth-userdb [fakessh at r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(dkimproxy): Fatal: seteuid(0) failed: Operation not permitted [fakessh at r13151 ~]$ any kind of discussion would be welcome -- gpg --keyserver pgp.mit.edu --recv-key 092164A7 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?Url : http://dovecot.org/pipermail/dovecot/attachments/20110406/ed70fcba/attachment.bin
I add this to my config file unix_listener auth-userdb { mode = 0666 } and the error is : fakessh at r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d doveadm(dkimproxy): Fatal: seteuid(0) failed: Operation not permitted work in root Le mercredi 06 avril 2011 ? 19:37 +0200, fakessh @ a ?crit :> hi timo > very very good job you realize for the community > > here I have a very strange problem with doveadm > I actually use a configuration file parameters in which the parameters > are placed carefully > > My problem appears when I run this command > doveadm expunge -A mailbox Trash savedbefore 30d > i post command and result to the terminal > [fakessh at r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d > doveadm(fakessh): Error: userdb lookup: > connect(/var/run/dovecot//auth-userdb) failed: Permission denied > (euid=514(fakessh) egid=100(users) missing +r > perm: /var/run/dovecot//auth-userdb, euid is not dir owner) > doveadm: Error: Failed to iterate through some users > [root at r13151 ~]$ chmod +r /var/run/dovecot/auth-userdb > [fakessh at r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d > doveadm(fakessh): Error: userdb lookup: > connect(/var/run/dovecot//auth-userdb) failed: Permission denied > (euid=514(fakessh) egid=100(users) missing +w > perm: /var/run/dovecot//auth-userdb, euid is not dir owner) > doveadm: Error: Failed to iterate through some users > [root at r13151 ~]# chmod og+w /var/run/dovecot/auth-userdb > [fakessh at r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d > doveadm(dkimproxy): Fatal: seteuid(0) failed: Operation not permitted > [fakessh at r13151 ~]$ > > any kind of discussion would be welcome >-- gpg --keyserver pgp.mit.edu --recv-key 092164A7 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?Url : http://dovecot.org/pipermail/dovecot/attachments/20110406/233f28cf/attachment.bin
On Wed, 2011-04-06 at 19:37 +0200, fakessh @ wrote:> doveadm(fakessh): Error: userdb lookup: > connect(/var/run/dovecot//auth-userdb) failed: Permission denied > (euid=514(fakessh) egid=100(users) missing +r > perm: /var/run/dovecot//auth-userdb, euid is not dir owner)..> [root at r13151 ~]# chmod og+w /var/run/dovecot/auth-userdbFor a more permanent solution you can set: service auth { unix_listener auth-userdb { mode = 0666 } }> [fakessh at r13151 ~]$ doveadm expunge -A mailbox Trash savedbefore 30d > doveadm(dkimproxy): Fatal: seteuid(0) failed: Operation not permitted > [fakessh at r13151 ~]$You have multiple users with different UIDs, right? You need to run doveadm as root then, so that it can change the UID when needed (and then you don't also need to change the permissions above).