LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-16-2005, 11:51 AM   #1
HalJordan
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Rep: Reputation: 0
Automatic AD user directory creation/mapping


I have successfully configured a Fedora Core 2 machine to authenticate off our school's Win2K Active Directory server. But, when I enter a random user's account name and password, Fedora tells me the user's home directory in /home does not exist. If I create a home directory, then the login process completes successfully. With 160 users, this manual process does not appeal to me much.

I know there is way to automate the process (create a new user home directory upon login/authentication), but my searches have not turned up anything real clear.

Alternatively, is it possible to automatically map the user's network folder on the Windows server on the Fedora box?

Thanks.
 
Old 02-16-2005, 12:02 PM   #2
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Hey
I'm afraid I can't help, however, I am interested to know how to do this. I have a server (on which all user data is stored) and a couple of people use my desktop. Therefore, I wanted them to be able to log onto my desktop and the desktop to automatacally load their /home/user folder from the server.

Both of my machines are linux.

hamish
 
Old 02-17-2005, 02:51 PM   #3
HalJordan
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Well, I have made some progress. After more time spent googling (really, should it be this hard to get a basic question answered), I discovered one must add lines to files in the pam.d directory to automate the /home/domain/username directory creation.

This goes into /etc/pam.d/system-auth:
-------------------------------------------------------------
session required pam_mkhomedir.so skel=/etc/skel umask=0022

Now my problem is I have the directories, but the users cannot log in. This message appears after the creation of the directories: "The system administrator has disabled your account."

Further investigation has so far turned up no solution.


hamish --

Look for info regarding pam_mount . This will apparently mount the user's Windows network directory. I may go that way myself, if I cannot get this other problem licked.
 
Old 02-18-2005, 03:58 PM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Quote:
Now my problem is I have the directories, but the users cannot log in. This message appears after the creation of the directories: "The system administrator has disabled your account."
It could be that the "template shell" in Samba is set to one that doesn't allow a login (e.g. /bin/false rather than /bin/bash).
 
Old 02-19-2005, 09:15 AM   #5
HalJordan
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Original Poster
Rep: Reputation: 0
My bad ...

After restarting the machine, I was able to log in successfully. I changed /bin/false to /bin/bash, even before I read your post, but I forgot to restart samba and network services after making the change.

In reading up on PAM, I did notice that the order of the lines in /etc/pam.d/login and system.auth does make a difference. Just to play it safe, I moved the make directory command first in the session listings.

Still working on the network mounts, but I am much happier now that I have a working Fedora system in my school's computer lab.
 
Old 02-19-2005, 10:31 AM   #6
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Quote:
In reading up on PAM, I did notice that the order of the lines in /etc/pam.d/login and system.auth does make a difference. Just to play it safe, I moved the make directory command first in the session listings.
Probably a good idea. I found that logins will fail with a mess of errors if the user's home directory doesn't exist *before* the shell/desktop environment starts to load.
 
  


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
Azureus directory creation cleff Linux - Software 4 08-21-2004 10:41 PM
Automatic mapping of Samba shares at login on Fedora chaan Linux - Software 2 05-14-2004 11:43 AM
automatic user account creation in mail server kar11 Linux - Software 0 04-13-2004 11:55 PM
Automatic user creation Skorpio Linux - Networking 3 09-25-2003 10:45 AM
user directory mapping ariana Linux - Software 2 03-10-2003 11:55 AM


All times are GMT -5. The time now is 08:50 AM.

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