group list


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers group list
# 1  
Old 07-05-2011
group list

What is the Solaris Unix Command to list the groups? Can I run it from my home directory or do I run it from somewhere else?
# 2  
Old 07-05-2011
If you want to know which groups your user belongs to, use this:
Code:
/usr/xpg4/bin/id -Gn

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

List files whose owner or group is numeric

I want to add a condition is my find command to include files/sub-directory whose owner or group is all numeric number. My current find command is find . \( -user root -o -user soham\) -type f -exec ls -l {} \; 2>&1 ---------- Post updated at 10:20 AM ---------- Previous update was at... (5 Replies)
Discussion started by: Soham
5 Replies

2. Shell Programming and Scripting

Script to check if list of files belong to particular group

i just need help to write a shell script which when run should take the text doc(contains list of files which are to be copied) as input and then each file has to be checked to see if they belong to any of the 5 groupnames that we are going to mention in the other list document, id they belong to... (1 Reply)
Discussion started by: draghun9
1 Replies

3. UNIX for Dummies Questions & Answers

Where can I find a list of POSIX certificated OS by open group?

Linux is said to be POSIX compliant but can't be named UNIX while Solaris, AIX, HP-UX are named UNIX. Where can I get a list of certificated UNIX? I can't find it in opengroup.org (1 Reply)
Discussion started by: vistastar
1 Replies

4. Shell Programming and Scripting

Script to list primary group of users

Dear All I am facing a problem with my script. I have to found the primary group of users . So first I selected all the groups and users register from a specific user : ONE Then I am making a file with all groups attached to the user : ONE Then I am making a file with all... (8 Replies)
Discussion started by: Aswex
8 Replies

5. Shell Programming and Scripting

List ALL users in a Unix Group (Primary and Secondary)

Is there a command or better combination of cmds that will give me the list of Unix users in a particular Unix group whether their primary group is that group in question (information stored in /etc/passwd) or they are in a secondary group (information stored in /etc/group). So far all I got... (5 Replies)
Discussion started by: ckmehta
5 Replies

6. Solaris

How to list group members in solaris 9

Hi, I already gone through with old post regarding listing the group members and tried the command getenv group other the result is other::1:root i listed my part of the /etc/passwd file below test1:x:100:1::/home/test1:/bin/sh test2:x:101:1::/home/test2:/bin/ksh... (7 Replies)
Discussion started by: vr_mari
7 Replies

7. Shell Programming and Scripting

How to get a list of group members?

Is there a command to get a list of group members? Something similar to the groups command, but instead of passing a username and returning groups, you pass it a groupname, and it returns members? It is difficult to do it manually because the group membership information is split across two... (5 Replies)
Discussion started by: akbar
5 Replies

8. Shell Programming and Scripting

How to process the user id list in /etc/group?

To all, I need to find a group in /etc/group and if found, I need to list out all the login ids for that group - one login id per line. To find the list of user login ids for group X, I probably will use cat /etc/group|grep ^X:|cut -d: -f4 This will return back a list of comma delimited... (4 Replies)
Discussion started by: april
4 Replies

9. Solaris

How do you list users in a solaris group

I need to list all users in a group. This is a large unix site running nis+. (6 Replies)
Discussion started by: gillbates
6 Replies

10. UNIX for Dummies Questions & Answers

command help, how do i list the users of a group?

What command allows you to display a list of the userids of all the other users in a group, regardless if they are logged in or not? (3 Replies)
Discussion started by: crabtruck
3 Replies
Login or Register to Ask a Question