Sponsored Content
Top Forums UNIX for Dummies Questions & Answers home directory & group in UNIX question Post 302155949 by Smiling Dragon on Sunday 6th of January 2008 07:28:33 PM
Old 01-06-2008
Quote:
Originally Posted by Katkota
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
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
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.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problem: Automounting Home directory for nis & nfs configuration doesn't work

Hi all, First of all, i am so sorry about my bad level in English writing. I have some problem in linux and i hope the experts of this forum to help me if they have enough time to reply to me. I have a scenario of configuring NIS and NFS in Redhat Linux environment such that user can login... (0 Replies)
Discussion started by: pioneer
0 Replies

2. UNIX for Dummies Questions & Answers

limiting home directory size for a group

Is there a way to set the size of the home directory for every single user in a specific group, in more details: I have a group & i will have to add about 20 users to it to be their home directories. i want each of the home directories for this group to be limited to 50 MB Help? (11 Replies)
Discussion started by: Katkota
11 Replies

3. Filesystems, Disks and Memory

Shared Home directory between Unix servers

Hi Im working in an environment where 2 production and 2 testing unix servers are used.. All these servers share the same home directory.. how is it done where would the home directory be located (0 Replies)
Discussion started by: raghav288
0 Replies

4. UNIX for Dummies Questions & Answers

How to find the free space & usage of the particular directory in Hp-Unix?

How to find the free space & usage of the particular directory in Hp-Unix? I want to see the usage in % (2 Replies)
Discussion started by: bobprabhu
2 Replies

5. UNIX for Dummies Questions & Answers

group & user permission question

Folks; I'd like to create a group on my Linux box & add a few users to it. Is there a way to do so and restrict this group/users to have access to only one or directory trees? Let's say i need this group to only have a read write access to only these two directories /opt/Virtu & /fsn/comers ... (10 Replies)
Discussion started by: Katkota
10 Replies

6. UNIX for Dummies Questions & Answers

user & group read/write access question

folks; I created a new users on my SUSE box and i need to give this user/group a read write access to one specific folder. here's the details: - I created new user "funny" under group "users". - I need to give this user "funny" a read/write access to another directory that is owned by "root".... (3 Replies)
Discussion started by: Katkota
3 Replies

7. UNIX for Dummies Questions & Answers

Unix set home directory

Hi I've just made a directory, what command do I use to now make it the base directory? Thanks!!!!!!!!!!!!!!! (1 Reply)
Discussion started by: beckywatson
1 Replies

8. Shell Programming and Scripting

Search in Unix home directory

I have many views in my Linux home dir under different folders mentioned below. Home 1. CCVIEWS 2. views 3. Development 4. testproject : : etc. Now i want to list all the clearcase views in my linux dir in below format to work on other script. 1) user_test_Work1.vws ... (4 Replies)
Discussion started by: saku
4 Replies

9. Shell Programming and Scripting

New To UNIX - Need Script to create report of user & group accounts

Hi, I'm new to the world of UNIX and have been asked to create a complex script (at least complex to me:confused:) for AIX UNIX to create a report of all the users on the server including server, user, UID, groups, GID, etc. Found a script using lsuser, but the output is still lacking. 2 things I... (2 Replies)
Discussion started by: panthur
2 Replies
lusermod(1)						      General Commands Manual						       lusermod(1)

NAME
lusermod - Modify an user SYNOPSIS
lusermod [OPTION]... user DESCRIPTION
Modifies the user with name user. OPTIONS
-c, --gecos=gecos Set user's GECOS field to gecos. The GECOS field is traditionally used to store user's real name and other information. -d, --directory=directory Set user's home directory to directory. -g, --gid=gid Change user's primary group ID to gid. If group with ID gid does not exist, a warning is printed, but the operation is performed anyway. -i, --interactive Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration. -L, --lock Lock user's account. This prevents logging in using user's password. -l, --login=name Rename user to name. -m, --movedirectory After changing user's home directory (using the -d option), move the old home directory to the new location. -P, --plainpassword=password Set user's password to password. Note that the password can be viewed while running lusermod using tools such as ps(1). -p, --password=encrypted Set user's password to the password represented by the hash encrypted. Note that the hash can be viewed while running lusermod using tools such as ps(1). -s, --shell=shell Set user's login shell to shell. -U, --unlock Unlock user's account. -u, --uid=uid Change user's user ID to uid. --commonname=name Set user's common name to name. This attribute is only supported in some backends (e.g.LDAP), and its support may have further lim- itations (e.g. LDAP schema rules). --givenname=name Set user's given name to name. This attribute is only supported in some backends (e.g.LDAP), and its support may have further limi- tations (e.g. LDAP schema rules). --homephone=phone Set user's home telephone number to phone. This attribute is only supported in some backends (e.g.LDAP), and its support may have further limitations (e.g. LDAP schema rules). --roomnumber=room Set user's room number to room. This attribute is only supported in some backends (e.g.LDAP), and its support may have further lim- itations (e.g. LDAP schema rules). --surname=name Set user's surname to name. This attribute is only supported in some backends (e.g.LDAP), and its support may have further limita- tions (e.g. LDAP schema rules). --telephonenumber=phone Set user's telephone number to phone. This attribute is only supported in some backends (e.g.LDAP), and its support may have fur- ther limitations (e.g. LDAP schema rules). EXIT STATUS
The exit status is 0 on success, nonzero on error. libuser 2009-12-11 lusermod(1)
All times are GMT -4. The time now is 02:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy