how to fing groups


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to fing groups
# 1  
Old 08-08-2007
how to fing groups

whats the command to find a particular group,pls its urgent

thnks
# 2  
Old 08-08-2007
Code:
cat /etc/group

normally does the trick.

or

Code:
id

depends what you are wanting of course.
# 3  
Old 08-08-2007
The command

id -Gn [user]

displays the groups to which you (or optionally the specified user) belong.
# 4  
Old 08-08-2007
Quote:
Originally Posted by porter
Code:
cat /etc/group

normally does the trick.
Only if using file based groups.
Code:
getent group

is a better approach.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sorting in groups

Hi, I am looking at a slightly different sorting problem and I am not sure how to do it in bash. I have the following input: 0 ... (8 Replies)
Discussion started by: jamie_123
8 Replies

2. UNIX for Dummies Questions & Answers

Groups

Must I be in a group? I am using Ubuntu and am the only user on my PC. I know how to change groups but do not see a way to not be in a group. Any help would be appreciated. (2 Replies)
Discussion started by: nthepines
2 Replies

3. Shell Programming and Scripting

Need help with regex groups

I have a requirement - replace specified positions in a string with a character. I found perl regex useful for this approach. however, I am facing the following issue. The target file 'temp' contains - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx The goal is to convert... (5 Replies)
Discussion started by: sam_roy
5 Replies

4. Shell Programming and Scripting

Groups in Unix ???

What is Primary group and Secondary Group in Unix.? (1 Reply)
Discussion started by: gwgreen1
1 Replies

5. Solaris

groups

1 user in member of 4 groups find file permissions and default group (1 Reply)
Discussion started by: tirupathi
1 Replies

6. Solaris

groups

how to create 1000 users in 1 group (0 Replies)
Discussion started by: tirupathi
0 Replies

7. Windows & DOS: Issues & Discussions

putty groups

Hi all, need info on using putty as group. I am having huge numbers of servers. (say 100) I am using putty to login remotely. i want to group each 25 hostnames or a set of servers into one putty instance. (see image attached.) Currently i have to scroll down to see all the 100 servers. ... (2 Replies)
Discussion started by: karthikn7974
2 Replies

8. AIX

Where are my groups

Hello A couple of weeks ago, I added a user to an AIX 5.3 system. I go to add one today, and it appears that when creating a user in smit, I cannot see any groups. No primary groups No Group set No Admin Groups The /etc/group and etc/secuity/group files seem to be intact. I did... (4 Replies)
Discussion started by: mhenryj
4 Replies

9. UNIX for Dummies Questions & Answers

users and groups

hi eveyone i've recently requested my unix admin to create a userid for 2 groups. He created the id and i can see it by grep "id" /etc/group. But when i login with that id into unix and try to cd that group it says permission denied. something like cd /groupname -- permission denied Can my admin... (1 Reply)
Discussion started by: sammet
1 Replies

10. UNIX for Dummies Questions & Answers

question about groups

:p I have a very elementary question that is kind of buggin me because I cannot figure it out. 1. How do you make a new group, give it a name, and assign permissions to specific users to access this group? 2. How do you delete a file that begins with a '-'? 3. How do you login as a... (1 Reply)
Discussion started by: zorro
1 Replies
Login or Register to Ask a Question