Golden Codes - armanexplorer planet

Practical code snippets for Django, Python, Bash, Git and All!

View on GitHub

check the members of a group

The group information, including members, is stored in the /etc/group file.

grep '^sudo:.*$' /etc/group | cut -d: -f4

# or

getent group sudo