org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.oddjob_mkhomedir was not provided by any .service files

Posted: December 12, 2012 in Administration, RedHat, Security, Tricks, Troubleshooting
Tags: , , , , ,

If you want the home directory of a user to be created at the first login, you probably use the PAM’s module pam_oddjob_mkhomedir to do that job. This operation is done for users not locally registered on the server.

You may have encounter this error after trying to log in for the first time. The authentication has worked well but the user does not have its own home directory.

org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.oddjob_mkhomedir was not provided by any .service files
Could not chdir to home directory /home/CONCUR/$USER: No such file or directory

This is because a service called oddjobd,  is not started on your server.

root@localhost:~#service oddjobd start

Make sure that this service will be available at boot time.

root@localhost:~#chkconfig –level 2345 oddjobd on

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s