LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-03-2008, 01:04 AM   #1
sfoo
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
Samba: automatically create a domain user's home directory


Hi All,

I have configure the winbind to work.

wbinfo -u, -g, -a is all working fine
i am able to login using domain+userid

however, when i tried the solution from redhat to automatically create a domain user's home directory and restart the winbind service I couldn't logi from my putty (ssh client).

I added the following into system-auth
session required /lib/security/$ISA/pam_mkhomedir.so skel=/etc/skel umask=0077

I encounter the error from putty (ssh client) during login with idtapac+userid
Network error: Software caused connection abort.

When I took out the config from system-auth and restart the winbind, I successfully login into my linux Redhat EL4.

Anyone knows what wrong?

Thanks
Steven
 
Old 03-04-2008, 03:26 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Last time I did this, I found that pam_mkhomedir only works if the process can run as root - for security the SSH service doesn't by default. I wrote a script to query AD (via LDAP) and create home directories as required, and scheduled this to run with cron.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically changing the user's group based on working directory sleeping Linux - General 5 03-12-2007 01:28 PM
Auto Create user home directory on Samba m2azer Linux - Networking 2 01-15-2007 11:56 AM
Not able to go to other user's home directory biswajit_dey Linux - Software 6 07-21-2005 08:14 AM
Reading other user's home directory with Samba zupidupi Linux - Networking 7 04-14-2005 01:53 AM
how to change a user's Home directory n1wil Linux - General 8 08-24-2002 03:22 PM


All times are GMT -5. The time now is 10:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration