15

I need to view the members of a group related to an oracle installation.

closed as unclear what you're asking by GAD3R, Jeff Schaller, Eric Renouf, muru, mdpc Sep 21 '16 at 0:13

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

23

You can use getent to display the group's information. getent uses library calls to fetch the group information, so it will honour settings in /etc/nsswitch.conf as to the sources of group data.

Example:

$ getent group simpsons
simpsons:x:742:homer,marge,bart,lisa,maggie

The fields, separated by :, are—

  1. Group name
  2. Encrypted password (not normally used)
  3. Numerical group ID
  4. Comma-separated list of members
  • 4
    On Ubuntu at least, this won't include users whose initial login group is simpsons. – jwodder Sep 20 '16 at 17:40
  • @jwodder A very good point, and true for all Unix-like systems. I'm ashamed not to have thought of that! – Flup Sep 20 '16 at 17:55
6

list members:

getent group <group>

And what rights? On filesystem, sudo, ssh? On filesystem:

find / -xdev -group <group>

  • 1
    On Ubuntu at least, this won't include users whose initial login group is <group>. – jwodder Sep 20 '16 at 17:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.