Hi group, I'm trying to use pam_mkhomedir.so, but I really don't understand how. I am using SuSE 9.0. It doesn't look like SuSE even looks at /etc/pam.d for its info at all. I added the following line to /etc/pam.d/login: session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 debug I thought the 'debug' would give me some verbose error messages if it failed, but it doesn't. So I have a user that I have created, I first test that I can su to him without -: honk:/var/home # su test.user test.user@honk:/var/home> Then I su with - thinking the home directory will be created: honk:/var/home # su - test.user su: warning: cannot change directory to /home/test.user: No such file or directory Then I look in /var/log/messages to see if there are any errors: Dec 17 16:31:31 honk su: pam_unix2: session started for user test.user, service su Dec 17 16:31:33 honk su: pam_unix2: session finished for user test.user, service su Since I get no other messages I really don't think the login process is even looking at /etc/pam.d. Am I correct? How do I configure this in SuSE? I know that to use LDAP I had to edit a comp[etely different file in /etc/sysconfig or something. Is there another one to turn on automatic homedir creation? Misty
On Fri, Dec 17, Misty Stanley-Jones wrote:
Hi group,
I'm trying to use pam_mkhomedir.so, but I really don't understand how. I am using SuSE 9.0. It doesn't look like SuSE even looks at /etc/pam.d for its info at all. I added the following line to /etc/pam.d/login:
session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 debug
I thought the 'debug' would give me some verbose error messages if it failed, but it doesn't. So I have a user that I have created, I first test that I can su to him without -:
honk:/var/home # su test.user test.user@honk:/var/home>
Then I su with - thinking the home directory will be created:
Why should it? You didn't modify the PAM configuration for su.
Since I get no other messages I really don't think the login process is even looking at /etc/pam.d.
Which login process? You only spoke about su, not login.
Am I correct?
Does not seem so.
How do I configure this in SuSE?
In the same way as for every distribution: You have to modify the configuration for the tool you are using. If su should create the home directory, you have to modify the su configuration. If xdm/kdm should create the home directory, you have to modify the configuration file for this service. Every program has it's own configuration file. Thorsten -- Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de SuSE Linux Products GmbH Maxfeldstr. 5 D-90409 Nuernberg -------------------------------------------------------------------- Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B
participants (2)
-
Misty Stanley-Jones
-
Thorsten Kukuk