# SLES 11 SP3 and SSSD

**URL:** <https://forums.suse.com/t/sles-11-sp3-and-sssd/25527>\
**Category:** SLES Configure-Administer\
**Created:** [May 5, 2014, 8:29pm UTC](https://forums.suse.com/t/sles-11-sp3-and-sssd/25527 "2014-05-05T20:29:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![romz169](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@romz169](https://forums.suse.com/u/romz169)\
**Post date:** [May 5, 2014, 8:29pm UTC](https://forums.suse.com/t/sles-11-sp3-and-sssd/25527/1 "2014-05-05T20:29:40Z")

</div>

I have configured sssd for ldap authentication on both CentOS and SuSE. A problem I am running into is that when a user logs in it creates the home directory it assigns 755 permissions. When CentOS I was able to download oddjob and set the config with umask 0077 and that fixed the home folder creation on CentOS. There is no oddjob package for SuSE. So looking at the ldap configs I have used yast to set the default home folder umask to 077 with no luck. I edited the /etc/pam.d/common-session,common-auth,common-password, common-account, sshd, useradd, logon to include "session required pam\_mkhomedir.so umask=0077 still with no luck. I have edited the /etc/profile, login.defs and /etc/default/useradd to have default umask of 0077. Can anyone identify what i am missing?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [May 11, 2014, 3:30pm UTC](https://forums.suse.com/t/sles-11-sp3-and-sssd/25527/2 "2014-05-11T15:30:32Z")

</div>

romz169,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting, please ignore and accept our apologies  
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)

---

<div class="post-metadata">

**Author:** ![Lawrence1](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@Lawrence1](https://forums.suse.com/u/Lawrence1)\
**Post date:** [June 16, 2016, 4:20am UTC](https://forums.suse.com/t/sles-11-sp3-and-sssd/25527/3 "2016-06-16T04:20:22Z")

</div>

I know this is an old post, but perhaps this will help someone 🙂 .

pam\_mkhomedir on the SUSE/openSUSE platform is the functional compliment to the oddjobd daemon on the RHEL/CentOS platform. It does create home directories for users that authenticate and establish sessions on SUSE OS instances.

There are several ways to implement it whilst implementing authentication services within YaST , but it can be implemented manually using the pam-config utility.

~# pam-config --add --mkhomedir

“man pam-config” to see how else pam-config can be used to responsibly modify your system PAM configuration 🙂 .

So, on SLES 12 SP1 using version 1.11.5.1-18.1 of the SSSD I was able to modify the default permissions applied by the mkhomedir service.

~# pam-config --add --mkhomedir-umask=0077

(man pam-config btw)

The modified /etc/pam.d/common-session-pc file as a result of the change:

session optional pam\_mkhomedir.so umask=0077  
session required pam\_limits.so   
session required pam\_unix.so try\_first\_pass  
session optional pam\_sss.so   
session optional pam\_umask.so   
session optional pam\_systemd.so  
session optional pam\_gnome\_keyring.so auto\_start only\_if=gdm,gdm-password,lxdm,lightdm  
session optional pam\_env.so

On a newly created home directory for a user new to the system:

ll /home/dvc.darkvixen.com/

drwxr-xr-x 7 laliah Domain Users 4096 Jun 2 05:49 laliah  
drwxr-xr-x 7 lmccarter Domain Users 4096 Jun 2 06:40 lmccarter  
drwx------ 7 mhuffman Domain Users 4096 Jun 15 19:56 mhuffman

Seemed to do the trick, so perhaps an upgrade for your version of the daemon or something else on the system?

– lawrence
