Solved

finding groups

Posted on 2007-04-05
1
186 Views
Last Modified: 2010-04-21
In unix how do i find out that a
1.user xyz belongs to which all groups.
2.what all groups are available and what users are allocated to which group.
3.what does groups xyz command do?
0
Comment
Question by:gram77
1 Comment
 
LVL 45

Accepted Solution

by:
Kdo earned 500 total points
ID: 18857487

Hi gram77,

Questions 1 and 3 are the same.  :)

  groups xyz

That command will return all of the groups that user xzy belongs to.

The file /etc/group contains all of the groups on the system, the group id number (GID) and the users that are members of each group.  Take a quick look at the file, it's pretty easy to follow.


Good Luck,
Kent
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now