Solved

Problem of using pam_mkhomedir.so in SUSE 9.3

Posted on 2007-03-19
5
544 Views
Last Modified: 2013-12-05
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
0
Comment
Question by:betemtl
  • 2
5 Comments
 
LVL 34

Expert Comment

by:PsiCop
Comment Utility
What's the ownership and mode of the home directory that is created?
0
 

Author Comment

by:betemtl
Comment Utility
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
 

Author Comment

by:betemtl
Comment Utility
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
 

Accepted Solution

by:
AnnieMod earned 0 total points
Comment Utility
PAQed with points refunded (500)

AnnieMod
Cleanup Admin
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now