ldap and pam-mkhomedir, anyone know how to set directory ownership to the ldap user logging in ??

Chris Cowart ccowart at rescomp.berkeley.edu
Wed Oct 14 22:33:46 UTC 2009

Craig Butler wrote:
> Currently I have got pam authenticating against ldap and mkhomedir
> creating the home directories, but they are created owned as root:wheel
> and the user can't write to their own home directory -- I have read the
> man page for pam_mkhomedir, the only way I see it working at the moment
> is setting an insecure umask in the pam definition....
> Any ideas on how I can get them owned by the ldap user signing in ?

It should "Just Work". Do you have the accounts properly configured in

If you:
getent passwd USER

For the account whose home directory isn't being created correctly? Do
you see the entry?

Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20091014/c9c32554/attachment.pgp

More information about the freebsd-questions mailing list