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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content