[CentOS] LDAP create home directories

Todor Petkov zakk at online.bg
Sun Dec 20 16:03:52 UTC 2015


On 20/12/2015 12:05 AM, Tim Dunphy wrote:
>> 
>> Check /var/log/secure for why the directory is not able to be created.
>> Might be selinux, is that enabled? (sestatus)
> 
> 
> Good catch! It was indeed SELinux preventing the directory from being
> created. Disabling it allows that to happen. For instance I just 
> created a
> new test user in LDAP:
> 
>  #ssh odunphy at ops2.example.com
> 
> odunphy at ops2.example.com's password:
> 
> Creating directory '/home/odunphy'.

Hello,

in RHEL/CentOS7 you need oddjob-mkhomedir - check this 
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Configuring_Authentication.html#idp27104864

Regards,



More information about the CentOS mailing list