I was configuring a new CentOS 6.5 machine to accept Active Directory logins and up until recently you could use the trust pam_mkhomedir.so to auto create home directories on login. This has since been replaced by a new system called Oddjobd and after the standard authconfig tool I enabled the auto create home directories and then Oddjobd fails to start.
</p> <p>[root@host ~]# service oddjobd start<br /> Starting oddjobd: [ FAILED ]</p> <p>
I did a bit of searching and couldn’t find anything in the logs on the machine or on the net with regards to this. So here is the post. Oddjobd requires access to the system message bus (dbus) and when trying to login to the machine with an AD account I got an error message.
</p> <p>org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory</p> <p>
This pointed out that the message bus wasn’t working or was broken. So first thing I did was check the status of the messagebus and it wasn’t running. I started up messagebus service and then oddjobd started fine.
</p> <p>[root@host ~]# service messagebus restart<br /> Stopping system message bus: [ FAILED ]<br /> Starting system message bus: [ OK ]<br /> [root@host ~]# service oddjobd start<br /> Starting oddjobd: [ OK ]<br /> [root@host ~]#</p> <p>
I was then able to login with my AD user and it auto created the home directory as required .