Home folder not being created for Active Directory users

I’ve just installed the latest Tumbleweed snapshot, which I’ve domain joined using SSSD via Yast. Everything works, except home folders aren’t being created for domain users. I just get thrown to root (/).

Anyone know where I should be looking to fix this? I’ve so far added session required pam_mkhomedir.so to /etc/pam.d/common-session and /etc/pam.d/sshd, but that hasn’t helped.

Ok, so adding the following to sssd.conf did the trick.

override_homedir = /home/%u

I guess it must be looking at some AD attribute to determine where it should create the home directory.

Makes sense, and it should be noted that your modification probably applies only when using the nss method for integrating with AD.

Something needs to tell openSUSE how to create the home directory if it’s not based on the internal "native’ Linux security system for setting up Users.


Indeed it is, specifically the homeDirectory attribute in LDAP syntax. If the attribute value is not populated, or you want to override what is (or isn’t there) you have to tell the SSSD what to do :slight_smile: .

Hope it helps,

– lawrence