↑ ↓ select, Enter open, Esc close

List the members of the sudo group

user@server
getent group sudo

Shows the group entry of the sudo group with all members at the end of the line. On Debian and Ubuntu, members of this group may run any command as root by default. getent also takes groups from LDAP or other sources into account.

Note: Privileges can also be granted directly in /etc/sudoers or files under /etc/sudoers.d/. Check these as root with grep -rv '^#' /etc/sudoers.d/.

Also searched as

  • list sudo users debian
  • who has sudo access
  • show members of sudo group

Related one-liners

All in Security

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.