• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

finding groups

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?
1 Solution
Kent OlsenData Warehouse Architect / DBACommented:

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,
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now