oddjob-mkhomedir doesn't use umask setting on Red Hat Enterprise Linux 6

Solution Verified - Updated -

Issue

  • Home directory is not created with the umask 0077, but 0022.
  • /etc/login.defs has umask 077, so it's expected that the home directory is created with umask 077.
# grep UMASK /etc/login.defs
UMASK           077

# grep oddjob /etc/pam.d/system-auth /etc/pam.d/password-auth
/etc/pam.d/system-auth:session     optional      pam_oddjob_mkhomedir.so
/etc/pam.d/password-auth:session     optional      pam_oddjob_mkhomedir.so

Environment

  • Red Hat Enterprise Linux 6
  • oddjob-mkhomedir
  • pam_oddjob_mkhomedir

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.