Because users group membership is defined in two different locations, it can be difficult to find out which groups exactly a user is a member of. A convenient command to check this is groupmems. Use, for example, the command groupmems -g sales -l to see which users are a member of the group sales. This shows users who are a member of this group as a secondary group assignment, but also users who are a member of this group as the primary group assignment.
- Chapter 6. User and Group Management
- from Red Hat RHCSA/RHCE 7 Cert Guide: Red Hat Enterprise Linux 7 (EX200 and EX300)
- Publisher: Pearson IT Certification
- Released: September 2015
command ‘lid’ shows both primary and secondary group memberships
Share this highlighthttp://learning.oreilly.com/a/red-hat-rhcsarhce/16890626/