Oddjobd(pam_oddjob_mkhomedir) daemon is not creating home directories for new users on first login

Solution Verified - Updated -

Issue

  • After resizing /home, the oddjobd daemon is no longer making user home directories on first user login.

  • Oddjobd daemon is no longer making user home directories on first user login, audit.log shows:

type=AVC msg=audit(1461603239.163:1335899): avc:  denied  { write } for  pid=956128 comm="mkhomedir" name="/" dev="dm-6" ino=128 scontext=system_u:system_r:oddjob_mkhomedir_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unlabeled_t:s0 tclas
s=dir 

Environment

  • Red Hat Enterprise Linux 6/7
  • oddjob-mkhomedir (pam_oddjobd_mkhomedir.so)

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