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
Peter, I'm using pam_mkhomedir on redhat 5 and centos5 just as it worked in previous versions of redhat...why do you believe that pam_mkhomedir doesn't work?
Aaron
Peter Huber wrote:
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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-----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.
Can anybody tell me, how to fix these two problems?
I have no problem with pam_mkhomedir on my CentOS 5 installation:
Works for me, the option for setting the home dir perms is umask=
Thank you. Actually there no problem using pam_mkhomedir. RedHat says something different (http://www.redhat.com/magazine/024oct06/features/tips_tricks/) but it still works. Maybe selinux was the problem in my first test. Thank you Peter