LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-05-2008, 06:07 PM   #1
katkota
Member
 
Registered: Jan 2008
Posts: 33

Rep: Reputation: 15
Talking home directory & group question


folks;
I'm going to use LDAP to authenticate users, i have 3 questions, i'm hoping it can be possible:

1. when users login for the first time, Is there a way to auto create a home directory like "/home/"user_name" so we don't have to a create a home directory for every single users (we will have about 300 users that going to need access to that UNIX box.

2. If question 1 can be done, is there a way to assign group to each user as well?

3. If question 2 can be done, Is there a way to make the group assignment based on their own group in LDAP?
In other word, let's say i have 2 groups in LDAP called "new & old", then if a user from group "old" in ldap logs in he should be assigned to group "staff" and if a user from group "new" in ldap logs in, the associated group would be "sysadm"

Help is very appreciated

Katkota
 
Old 01-05-2008, 08:37 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,247

Rep: Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025
Well, you can script the creation of users via useradd, and you can also specify home dirs etc with it.
 
  


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
Home Directory Question carlosinfl Debian 1 10-04-2006 01:42 PM
Home Directory & C drive deleted at same time Wen Win Linux - Newbie 1 12-17-2005 06:53 AM
Remote home directory - pros & cons? utabintarbo Linux - Networking 2 01-31-2005 02:10 PM
Home directory question BobL Linux - Software 5 01-04-2005 04:28 PM
question about user/group & directory... hct224 Linux - Newbie 2 10-11-2003 02:28 PM


All times are GMT -5. The time now is 02:51 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