[Dovecot] Dovecot & pam_mkhomedir
Stroller
linux.luser at myrealbox.com
Sun Dec 18 20:23:40 EET 2005
On Dec 17, 2005, at 5:56 pm, Pasi Sjoholm wrote:
> On Fri, 16 Dec 2005, Stroller wrote:
>
>> dovecot: Dec 16 19:05:00 Error: imap(ned):
>> mkdir(/home/DOMAIN/ned/.maildir/cur) failed: Permission denied
>> dovecot: Dec 16 19:05:00 Error: imap(ned):
>> mkdir(/home/DOMAIN/ned/.maildir/cur) failed: Permission denied
>
>> I can remedy this easily by changing permissions on /home &
>> /home/DOMAIN to 777, but obviously that's undesirable. Any
>> suggestions,
>> please?
>
> What you have set for "template homedir", "winbind separator" and
> "winbind
> use default domain" in smb.conf? I have "/home/%U", "+", "yes"
>
> For me everything is working ok and pam_mkhomedir is making home
> directories with correct umask (I have set this in
> /etc/pam.d/{$service}).
>
> btw. when using "winbind use default domain" you don't have to use
> windows-domain before the username. =)
Sorry... I mean to include my updated config files. I don't seem to
have a "template homedir" defined anywhere... but I'm not sure if I
need it, as pam.d seems to be trying to create home directories in a
reasonable place, anyway (as you can see from the log).
When I log in I'm just using the username "ned" not "domain\ned", and
it seems to do the domain stuff on its own.
If you'd have a copy of your own configs I'd be extremely grateful for
them - perhpas by private email, if you'd prefer? I'm gonna have a
tinker with it later, in any case - it's a relief this is working for
someone else, so I know that what I want is possible.
Stroller.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot.conf
Type: application/octet-stream
Size: 32276 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20051218/b54065f4/dovecot-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pam.d-imap
Type: application/octet-stream
Size: 257 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20051218/b54065f4/pam-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smb.conf
Type: application/octet-stream
Size: 4216 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20051218/b54065f4/smb-0001.obj
More information about the dovecot
mailing list