I'm struggling to auto create home dirs when a user login.
I have the following infrastructure:
1 - A active ldap and NFS server that exports the /home partition with
the options rw, sync, fs=0 and is used for authentication.
2 - A ldap client properly configured that can authenticate in the
server if his home directory is already created in the nfs server, configured
with pam_mkhomedir in common-session and autofs.
My problem is that I want to auto create the home directory in the user first login, but when a try to login in the client with a user without a home directory I got the message: Unable to create directory /home/user. Permission Denied.
There is any way to export the home directory and create the home folders automatically?
Thanks in advance,