The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shared Home directory between Unix servers raghav288 Filesystems, Disks and Memory 0 02-22-2008 04:45 AM
limiting home directory size for a group Katkota UNIX for Dummies Questions & Answers 11 01-06-2008 04:48 PM
home directory nokia3100 UNIX for Dummies Questions & Answers 1 05-07-2007 02:16 PM
cd into home directory ~ here2learn UNIX for Dummies Questions & Answers 4 04-12-2005 09:20 AM
c++ home directory?? user666 UNIX for Dummies Questions & Answers 3 03-16-2002 09:49 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-05-2008
Katkota Katkota is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 115
home directory & group in UNIX question

folks;
I'm going to use LDAP on Solaris 10 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 Solaris 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 to the Solaris box he should be assigned to group "staff" and if a user from group "new" in ldap logs in, the associated group on Solaris box would be "sysadm"

Help is very appreciated
  #2 (permalink)  
Old 01-06-2008
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 921
Quote:
Originally Posted by Katkota View Post
I'm going to use LDAP on Solaris 10 to authenticate users

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 Solaris box.
/home is a virtual filesystem linked to the automounter. If you want to use LDAP to authenticate, I'd suggest also using NFS for their home dirs to keep everything in sync - otheriwse you'll have the situation where a new user won't have a home dir on several servers and an old, deleted user will leave their homedir behind on several servers.
If you configure automount to go to a predefined NFS server, you won't need to create accounts on any of your LDAP client servers.

Quote:
Originally Posted by Katkota View Post
2. If question 1 can be done, is there a way to assign group to each user as well?
This comes over as part of the LDAP info - you should use LDAP for user and groups to avoid the problems described in (1).
Quote:
Originally Posted by Katkota View Post
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 to the Solaris box he should be assigned to group "staff" and if a user from group "new" in ldap logs in, the associated group on Solaris box would be "sysadm"
No idea sorry but I would imagine it would be easier to stick with LDAP groups for users and avoid using groups from /etc/group altogether for these (non-system) users.
  #3 (permalink)  
Old 01-06-2008
Katkota Katkota is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 115
Thanks for the reply, but any idea on how to do your solution for question 1?
  #4 (permalink)  
Old 01-06-2008
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 921
Quote:
Originally Posted by Katkota View Post
Thanks for the reply, but any idea on how to do your solution for question 1?
Which aspect are you unfamilar with? The NFS server (ie a central server holding everyone's home directories) or the automounter config (ie setting up /home/blah to contain the relevant user's homedir on every server they log into)?
It'll save me going into detail on something you already know
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0