-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Peter Huber Sent: Tuesday, August 07, 2007 9:20 AM To: centos@centos.org Subject: [CentOS] CentOS5 pam_mkhomedir
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?
I have no problem with pam_mkhomedir on my CentOS 5 installation:
session optional pam_keyinit.so revoke session required pam_mkhomedir.so skel=/etc/skel umask=0077 silent session required pam_limits.so session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid session required pam_unix.so session optional pam_krb5.so
Works for me, the option for setting the home dir perms is umask=
-Ross
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.