Brent Nesbitt
2007-Apr-03 22:48 UTC
[Dovecot] chdir failed, but requires group permissions
Using Debian Etch package dovecot-common and dovecot-pop3d, based on 1.0.rc15-2 My home directories are set up with 770 permissions as follows: /home/<group name>/<user name> Using this method, users MUST be a member of the appropriate group to access their own home directory. If they are not, they can't chdir past /home. This appears to kill dovecot with a "chdir failed with id xxxx: Permission Denied" error, immediately after authenticating a pop3 user. I was able to make a user the owner of the <group name> directory, and dovecot succeeded But when the <group name> directory is owned by <group name>:<group name> and the user is a member of the group - the process dies. Any suggestions?
Timo Sirainen
2007-Apr-06 08:01 UTC
[Dovecot] chdir failed, but requires group permissions
On 4.4.2007, at 1.48, Brent Nesbitt wrote:> My home directories are set up with 770 permissions as follows: > > /home/<group name>/<user name> > > Using this method, users MUST be a member of the appropriate group to > access their own home directory. If they are not, they can't chdir > past > /home.Could the group be the user's primary group? Then it works. Otherwise there's not much else you can do except modify the sources. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070406/9250bfe6/attachment.bin>
Brent Nesbitt
2007-Apr-07 17:35 UTC
[Dovecot] chdir failed, but requires group permissions
Thanks for the suggestion, That's a good idea, but unfortunately where the home directories lie, the users actually need to be members of 2 groups - so they both can't be primary. However, it seems odd to me that Dovecot would REQUIRE access to the $HOME directory, when I am only using it to pop mail from /var/mail (which it has full access to) - and I am not using imap access at all. Brent. -----Original Message----- From: Timo Sirainen [mailto:tss at iki.fi] Sent: Fri 4/6/2007 1:01 AM To: Brent Nesbitt Cc: dovecot at dovecot.org Subject: Re: [Dovecot] chdir failed, but requires group permissions On 4.4.2007, at 1.48, Brent Nesbitt wrote:> My home directories are set up with 770 permissions as follows: > > /home/<group name>/<user name> > > Using this method, users MUST be a member of the appropriate group to > access their own home directory. If they are not, they can't chdir > past > /home.Could the group be the user's primary group? Then it works. Otherwise there's not much else you can do except modify the sources.