[CentOS] CentOS5 pam_mkhomedir

Tue Aug 7 13:19:30 UTC 2007
Peter Huber <huber at uni-wh.de>

I have a problem creating homedirs on the fly. Since RHEL5 / CentOS5 you have to 
use pam_oddjob_mkhomedir instead of pam_mkhomedir.
Everything is working (the homedir is created) but two things.
First on every logon I get the following error message, and I don't know how to 
fix it:
org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.oddjob was not 
provided by any .service files

Second: The permissions of the new created homedir is wrong. It should be 700 
but it is 755.

Can anybody tell me, how to fix these two problems?

Thanks

Peter