Problem of using pam_mkhomedir.so in SUSE 9.3

I have a problem with using pam_mkhomedir.so to create home directories automatically. I am using Windows NIS server t authenticate windows users against SUSE machines… everything is ok except when I login to the KDE, it gives me an error massage “No write access to $HOME directory”.

Here is my /etc/pam.d/login


#%PAM-1.0
auth requisite pam_unix2.so nullok
auth required pam_securetty.so
auth required pam_nologin.so
#auth required pam_homecheck.so
auth required pam_env.so
auth required pam_mail.so
account required pam_unix2.so
password required pam_pwcheck.so nullok
password required pam_unix2.so nullok use_first_pass use_authtok
session required pam_mkhomedir.so skel=/etc/skel/ umask=0077
#session sufficient pam_unix2.so none # debug or trace
session required pam_limits.so


Thanks for helping
betemtlAsked:
Who is Participating?
 
AnnieModConnect With a Mentor Commented:
PAQed with points refunded (500)

AnnieMod
Cleanup Admin
0
 
PsiCopCommented:
What's the ownership and mode of the home directory that is created?
0
 
betemtlAuthor Commented:
I haven't created any home directory. I am trying to create one for each user when they log in to the SUSE machine automatically.
0
 
betemtlAuthor Commented:
I found the solution... I have to add pam_mkhomedir.so also in /etc/pam.d/xdm... It is working properly now... Thanks anyway
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.