[Dovecot] missing +r perm:
This is probably a really simple issue but I am not sure how to tackle it.
sudo dovecot -n: http://pastie.org/2179100
The error message in mail.log: http://pastie.org/2179032
Dovecot.conf says: mail_privileged_group: mail
I thought of added the user dovecot to the group mail in hopes of
solving the permissions problem, but it didn't seem to make a
difference.
Any ideas?
On 2011-07-07 3:03 PM, Max Dunlap wrote:
sudo dovecot -n: http://pastie.org/2179100
The error message in mail.log: http://pastie.org/2179032
You're much better off just pasting the output of these into the email body - lost of people won't go to the trouble of clicking links like these...
--
Best regards,
Charles
Oh, well. I'll take what I can get at this point.
On Thu, 2011-07-07 at 15:17 -0400, Charles Marcus wrote:
On 2011-07-07 3:03 PM, Max Dunlap wrote:
sudo dovecot -n: http://pastie.org/2179100
The error message in mail.log: http://pastie.org/2179032
You're much better off just pasting the output of these into the email body - lost of people won't go to the trouble of clicking links like these...
The error message was caused by the missing hardlinks when migrating mail over scp. I made a tar of the mail and then scped it. Worked fine.
On Thu, 2011-07-07 at 14:21 -0500, Max Dunlap wrote:
Oh, well. I'll take what I can get at this point.
On Thu, 2011-07-07 at 15:17 -0400, Charles Marcus wrote:
On 2011-07-07 3:03 PM, Max Dunlap wrote:
sudo dovecot -n: http://pastie.org/2179100
The error message in mail.log: http://pastie.org/2179032
You're much better off just pasting the output of these into the email body - lost of people won't go to the trouble of clicking links like these...
On 7/7/2011 2:03 PM, Max Dunlap wrote:
Jul 7 13:44:18 mail-breakaway dovecot: IMAP(dlambert): open(/home/dlambert/Maildir/cur/msg.COmK:2,ST) failed: Permission denied (euid=1002(dlambert) egid=1002(dlambert) missing +r perm: /home/dlambert/Maildir/cur/msg.COmK:2,ST) The error message is telling you that the dovecot program can't open /home/dlambert/Maildir/cur/msg.COmK:2,ST.
What are the permissions of that file? Who is dovecot running as? Can the user dovecot is running as read that file?
-Matt
-- Matt Rude Minneapolis, Minnesota, USA email: matt@mattrude.com website: http://mattrude.com s/mime: 28ed9274553ca7481369789df0663808 gpg: 0x6503BE11
The permissions are: -rw------- 1 root root 7609 2011-07-05 16:06 /home/dlambert/Maildir/cur/msg.COmK:2,ST
The same as another mail machine we have up (making a transition)
I'm not sure who to find out who dovecot is running as: -rwxr-xr-x 1 root root 217240 2011-06-07 00:03 /usr/sbin/dovecot root maybe?
Thanks so far
On Thu, 2011-07-07 at 14:43 -0500, Matt Rude wrote:
On 7/7/2011 2:03 PM, Max Dunlap wrote:
Jul 7 13:44:18 mail-breakaway dovecot: IMAP(dlambert): open(/home/dlambert/Maildir/cur/msg.COmK:2,ST) failed: Permission denied (euid=1002(dlambert) egid=1002(dlambert) missing +r perm: /home/dlambert/Maildir/cur/msg.COmK:2,ST) The error message is telling you that the dovecot program can't open /home/dlambert/Maildir/cur/msg.COmK:2,ST.
What are the permissions of that file? Who is dovecot running as? Can the user dovecot is running as read that file?
-Matt
On Thu, Jul 07, 2011 at 02:52:55PM -0500, Max Dunlap wrote:
The permissions are: -rw------- 1 root root 7609 2011-07-05 16:06 /home/dlambert/Maildir/cur/msg.COmK:2,ST
What's so difficult about this?
[ Log excerpt ] Jul 7 13:44:18 mail-breakaway dovecot: IMAP(dlambert): open(/home/dlambert/Maildir/cur/msg.COmK:2,ST) failed: Permission denied (euid=1002(dlambert) egid=1002(dlambert) missing +r perm: /home/dlambert/Maildir/cur/msg.COmK:2,ST)
[ Conf excerpt ] auth default: passdb: driver: pam userdb: driver: passwd
You are accessing the maildir structure using UID 1002 but the directory is owned by UID 1. Needs to be fixed on either side...
Please visit these links and have a look at the quote below:
http://wiki.dovecot.org/PasswordDatabase/PAM http://wiki.dovecot.org/AuthDatabase/Passwd
[...] This uses the UID and GID fields from passwd, but home directory is overridden. Also the default mail_location setting is overridden.
Thomas
On Fri, Jul 08, 2011 at 10:12:47AM +0200, Thomas Leuxner wrote:
You are accessing the maildir structure using UID 1002 but the directory is owned by UID 1. Needs to be fixed on either side...
Should read UID 0. Shame on me - more coffee required...
Alright, I think I understand. By fixing the other side do you mean I could add mail_uid=0 and mail_gid=0 in dovecot.conf? to match the current mails permissions. We are migrating a server over and we ran into this snag when transferring Maildirs over
On Fri, 2011-07-08 at 10:12 +0200, Thomas Leuxner wrote:
On Thu, Jul 07, 2011 at 02:52:55PM -0500, Max Dunlap wrote:
The permissions are: -rw------- 1 root root 7609 2011-07-05 16:06 /home/dlambert/Maildir/cur/msg.COmK:2,ST
What's so difficult about this?
[ Log excerpt ] Jul 7 13:44:18 mail-breakaway dovecot: IMAP(dlambert): open(/home/dlambert/Maildir/cur/msg.COmK:2,ST) failed: Permission denied (euid=1002(dlambert) egid=1002(dlambert) missing +r perm: /home/dlambert/Maildir/cur/msg.COmK:2,ST)
[ Conf excerpt ] auth default: passdb: driver: pam userdb: driver: passwd
You are accessing the maildir structure using UID 1002 but the directory is owned by UID 1. Needs to be fixed on either side...
Please visit these links and have a look at the quote below:
http://wiki.dovecot.org/PasswordDatabase/PAM http://wiki.dovecot.org/AuthDatabase/Passwd
[...] This uses the UID and GID fields from passwd, but home directory is overridden. Also the default mail_location setting is overridden.
Thomas
Alright, I think I understand. By fixing the other side do you mean I could add mail_uid=0 and mail_gid=0 in dovecot.conf? to match the current mails permissions. We are migrating a server over and we ran into this snag when transferring Maildirs over
IMHO it appears perfectly right to have them share a virtual/generic UID unless you see a special need to separate them all (for an ultra-secure setup FWIW)… Several paths are available. Either return same ID/GID via the user query or set it to a static value if acceptable.
Thomas
ls -lan: -rw------- 1 1002 1002 1148 2011-07-05 16:11 msg.zSMF:2,S
This file is owned by 1002 not 1 or 0
On Fri, 2011-07-08 at 10:12 +0200, Thomas Leuxner wrote:
On Thu, Jul 07, 2011 at 02:52:55PM -0500, Max Dunlap wrote:
The permissions are: -rw------- 1 root root 7609 2011-07-05 16:06 /home/dlambert/Maildir/cur/msg.COmK:2,ST
What's so difficult about this?
[ Log excerpt ] Jul 7 13:44:18 mail-breakaway dovecot: IMAP(dlambert): open(/home/dlambert/Maildir/cur/msg.COmK:2,ST) failed: Permission denied (euid=1002(dlambert) egid=1002(dlambert) missing +r perm: /home/dlambert/Maildir/cur/msg.COmK:2,ST)
[ Conf excerpt ] auth default: passdb: driver: pam userdb: driver: passwd
You are accessing the maildir structure using UID 1002 but the directory is owned by UID 1. Needs to be fixed on either side...
Please visit these links and have a look at the quote below:
http://wiki.dovecot.org/PasswordDatabase/PAM http://wiki.dovecot.org/AuthDatabase/Passwd
[...] This uses the UID and GID fields from passwd, but home directory is overridden. Also the default mail_location setting is overridden.
Thomas
SELinux?
On 8.7.2011, at 23.32, Max Dunlap wrote:
ls -lan: -rw------- 1 1002 1002 1148 2011-07-05 16:11 msg.zSMF:2,S
This file is owned by 1002 not 1 or 0
On Fri, 2011-07-08 at 10:12 +0200, Thomas Leuxner wrote:
On Thu, Jul 07, 2011 at 02:52:55PM -0500, Max Dunlap wrote:
The permissions are: -rw------- 1 root root 7609 2011-07-05 16:06 /home/dlambert/Maildir/cur/msg.COmK:2,ST
What's so difficult about this?
[ Log excerpt ] Jul 7 13:44:18 mail-breakaway dovecot: IMAP(dlambert): open(/home/dlambert/Maildir/cur/msg.COmK:2,ST) failed: Permission denied (euid=1002(dlambert) egid=1002(dlambert) missing +r perm: /home/dlambert/Maildir/cur/msg.COmK:2,ST)
[ Conf excerpt ] auth default: passdb: driver: pam userdb: driver: passwd
You are accessing the maildir structure using UID 1002 but the directory is owned by UID 1. Needs to be fixed on either side...
Please visit these links and have a look at the quote below:
http://wiki.dovecot.org/PasswordDatabase/PAM http://wiki.dovecot.org/AuthDatabase/Passwd
[...] This uses the UID and GID fields from passwd, but home directory is overridden. Also the default mail_location setting is overridden.
Thomas
Ubuntu 10.04
On Fri, 2011-07-08 at 23:37 +0300, Timo Sirainen wrote:
SELinux?
On 8.7.2011, at 23.32, Max Dunlap wrote:
ls -lan: -rw------- 1 1002 1002 1148 2011-07-05 16:11 msg.zSMF:2,S
This file is owned by 1002 not 1 or 0
On Fri, 2011-07-08 at 10:12 +0200, Thomas Leuxner wrote:
On Thu, Jul 07, 2011 at 02:52:55PM -0500, Max Dunlap wrote:
The permissions are: -rw------- 1 root root 7609 2011-07-05 16:06 /home/dlambert/Maildir/cur/msg.COmK:2,ST
What's so difficult about this?
[ Log excerpt ] Jul 7 13:44:18 mail-breakaway dovecot: IMAP(dlambert): open(/home/dlambert/Maildir/cur/msg.COmK:2,ST) failed: Permission denied (euid=1002(dlambert) egid=1002(dlambert) missing +r perm: /home/dlambert/Maildir/cur/msg.COmK:2,ST)
[ Conf excerpt ] auth default: passdb: driver: pam userdb: driver: passwd
You are accessing the maildir structure using UID 1002 but the directory is owned by UID 1. Needs to be fixed on either side...
Please visit these links and have a look at the quote below:
http://wiki.dovecot.org/PasswordDatabase/PAM http://wiki.dovecot.org/AuthDatabase/Passwd
[...] This uses the UID and GID fields from passwd, but home directory is overridden. Also the default mail_location setting is overridden.
Thomas
I turned on more debugging: Jul 8 15:45:18 mail-breakaway dovecot: imap-login: Login: user=<ilambert>, method=PLAIN, rip=173.11.172.145, lip=173.11.172.148, TLS Jul 8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): Effective uid=1001, gid=1001, home=/home/ilambert Jul 8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): cydir: mailbox location not given Jul 8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): cydir: Couldn't create mail storage : Root mail directory not given Jul 8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): dbox: mailbox location not given Jul 8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): dbox: Couldn't create mail storage : Root mail directory not given Jul 8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): maildir: root exists (/home/ilambert/Maildir) Jul 8 15:45:18 mail-breakaway dovecot: IMAP(ilambert): maildir++: root=/home/ilambert/Maildir, index=, control=, inbox=/home/ilambert/Maildir Jul 8 15:46:07 mail-breakaway dovecot: IMAP(ilambert): Namespace : Using permissions from /home/ilambert/Maildir: mode=0700 gid=-1 Jul 8 15:46:08 mail-breakaway dovecot: IMAP(ilambert): open(/home/ilambert/Maildir/cur/msg.0umK:2,S) failed: Permission denied (euid=1001(ilambert) egid=1001(ilambert) missing +r perm: /home/ilambert/Maildir/cur/msg.0umK:2,S) Jul 8 15:46:08 mail-breakaway dovecot: IMAP(ilambert): open(/home/ilambert/Maildir/cur/msg.0umK:2,S) failed: Permission denied (euid=1001(ilambert) egid=1001(ilambert) missing +r perm: /home/ilambert/Maildir/cur/msg.0umK:2,S) Jul 8 15:46:08 mail-breakaway dovecot: IMAP(ilambert): Disconnected: Internal error occurred. Refer to server log for more information. [2011-07-08 15:46:08] bytes=236/181183
On Fri, 2011-07-08 at 15:40 -0500, Max Dunlap wrote:
Ubuntu 10.04
On Fri, 2011-07-08 at 23:37 +0300, Timo Sirainen wrote:
SELinux?
On 8.7.2011, at 23.32, Max Dunlap wrote:
ls -lan: -rw------- 1 1002 1002 1148 2011-07-05 16:11 msg.zSMF:2,S
This file is owned by 1002 not 1 or 0
On Fri, 2011-07-08 at 10:12 +0200, Thomas Leuxner wrote:
On Thu, Jul 07, 2011 at 02:52:55PM -0500, Max Dunlap wrote:
The permissions are: -rw------- 1 root root 7609 2011-07-05 16:06 /home/dlambert/Maildir/cur/msg.COmK:2,ST
What's so difficult about this?
[ Log excerpt ] Jul 7 13:44:18 mail-breakaway dovecot: IMAP(dlambert): open(/home/dlambert/Maildir/cur/msg.COmK:2,ST) failed: Permission denied (euid=1002(dlambert) egid=1002(dlambert) missing +r perm: /home/dlambert/Maildir/cur/msg.COmK:2,ST)
[ Conf excerpt ] auth default: passdb: driver: pam userdb: driver: passwd
You are accessing the maildir structure using UID 1002 but the directory is owned by UID 1. Needs to be fixed on either side...
Please visit these links and have a look at the quote below:
http://wiki.dovecot.org/PasswordDatabase/PAM http://wiki.dovecot.org/AuthDatabase/Passwd
[...] This uses the UID and GID fields from passwd, but home directory is overridden. Also the default mail_location setting is overridden.
Thomas
On 7/8/2011 3:47 PM, Max Dunlap wrote:
Jul 8 15:46:08 mail-breakaway dovecot: IMAP(ilambert): open(/home/ilambert/Maildir/cur/msg.0umK:2,S) failed: Permission denied (euid=1001(ilambert) egid=1001(ilambert) missing +r perm: /home/ilambert/Maildir/cur/msg.0umK:2,S)
when ran as root, what dose the below command show?
sudo -u 1001 ls -l /home/ilambert/Maildir/cur/msg.0umK:2,S
-Matt
-- Matt Rude Minneapolis, Minnesota, USA email: matt@mattrude.com website: http://mattrude.com s/mime: 28ed9274553ca7481369789df0663808 gpg: 0x6503BE11
Unknown user. I don't believe ubuntu operates like that and requires a word username.
On Fri, 2011-07-08 at 16:27 -0500, Matt Rude wrote:
On 7/8/2011 3:47 PM, Max Dunlap wrote:
Jul 8 15:46:08 mail-breakaway dovecot: IMAP(ilambert): open(/home/ilambert/Maildir/cur/msg.0umK:2,S) failed: Permission denied (euid=1001(ilambert) egid=1001(ilambert) missing +r perm: /home/ilambert/Maildir/cur/msg.0umK:2,S)
when ran as root, what dose the below command show?
sudo -u 1001 ls -l /home/ilambert/Maildir/cur/msg.0umK:2,S
-Matt
participants (5)
-
Charles Marcus
-
Matt Rude
-
Max Dunlap
-
Thomas Leuxner
-
Timo Sirainen