user administration


 
Thread Tools Search this Thread
Operating Systems Solaris user administration
# 1  
Old 02-04-2009
user administration

hi '

i am creating a primary group and a secondary group for a user.

#groupadd -g 101 test
#groupadd -g 102 test1

#useradd -d /export/home/user1 -m -s /bin/ksh -g test -G test user1

in /etc/passwd i can find the username as user1 and group name as test
and where can i find the secondary group details...
# 2  
Old 02-04-2009
should be -g test(primary group) -G test1 (secondary group)
# 3  
Old 02-04-2009
user administration

where can i find the details about the secondary group
# 4  
Old 02-04-2009
To see a list of groups that a user belongs to, try the following:
Code:
bash-3.00# groups agray
sysadmin dba etc

I believe that the primary group is listed first - but don't quote me on that Smilie

You can also check for information on a list of users:
Code:
bash-3.00# groups agray otheruser otherotheruser
agray: sysadmin dba etc
otheruser: dba
otherotheruser: etc etc3 blah

or from a list of users in a file
Code:
bash-3.00# for user in `cat list`; do echo "$user: `groups $user`"; done
agray: sysadmin dba etc
otheruser: dba
otherotheruser: etc etc3 blah

# 5  
Old 02-09-2009
use the command It will show you the primary and secondary group


id username

to run this command you have root access, OK

Thanks
Pravin Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

AIX user administration - queue management

Dear All Please how can I create a user which would be only able to manage queue printer like creating, release, hold etc a printer queue. He would for example be able to enter commands like : - lpstat -pprintqueue where printqueue is an existing queue on the server - enable printqueue... (0 Replies)
Discussion started by: sobnc
0 Replies

2. Shell Programming and Scripting

User administration

Dear All, I need to restrict the users in our server. 1.History & history -c command working all groups & others.So i need to restrict history -c option for groups & others . 2.Any option available to view user activity with all Eg--->user1 Jul22 10:20:11 date 3.Any other Special... (7 Replies)
Discussion started by: kpoobathi
7 Replies

3. Solaris

Zone administration

hi frnds I created sparse root zone, in that zone when i try to change the passwd it is giving permission denied. what is the reason and how to chnage the root passwd in the zone. can u please explain the query. (4 Replies)
Discussion started by: sravan ega
4 Replies

4. Solaris

Solaris User Administration

unable to run smgroup / smadd command to create or modify the users and directories. (1 Reply)
Discussion started by: sendhils13
1 Replies

5. Solaris

Solaris User Administration

Hi All..... How many maximum no of users can be created in solaris 10.0 Waiting for the reply ..... (2 Replies)
Discussion started by: sendhils13
2 Replies

6. UNIX for Dummies Questions & Answers

Tru64 User administration

Hey guys how do you check if an account is locked in tru64, and how do you unlock it? (1 Reply)
Discussion started by: sbn
1 Replies

7. UNIX for Dummies Questions & Answers

User Administration

I have an application that runs on Unix and the user administration is managed at a Unix level. The application has an application ID which is linked to the user ids which are created at Unix level. Can you please help if I can be able to track which user used the Application ID and what action was... (0 Replies)
Discussion started by: Kopano
0 Replies

8. Solaris

remote user administration

Hello, I inhearited several solaris machines (read that about 30 of them) and have a need to be able to manage the user accounts remotely.... Currently the machines all have the same users but not exactly the same spelling (each machine was locally managed before and thus every single passwd/shadow... (2 Replies)
Discussion started by: wgriffin
2 Replies
Login or Register to Ask a Question