List of Users in a Group (getent)
Managing users & groups since long but have you ever looked/reviewed the list of users present in a Specific Group after adding them, so here is a single line command for my lazy sysadmins :)
$ getent group | awk -F: '{print $4}'
you may use this when doing a security audit.
- Read more about List of Users in a Group (getent)
- Log in to post comments
Recent comments
find .