Sample Header Ad - 728x90

How to get list of users with a given group as primary group

1 vote
1 answer
1992 views
With getent group xyz I get a list of users who are members of
with
either as a primary group **or** as secondary group. How do I get a list of just those users who have
as their primary group? My users are in LDAP, so I am not looking for solutions which involve parsing
/etc/group
.
Asked by loris (195 rep)
Aug 2, 2022, 07:40 AM
Last activity: Aug 2, 2022, 08:31 AM