Set User as Admin / View All Admins [Ubuntu Linux]

PROBLEM:  I want to add see if a user in ubuntu linux is an administrator.

  • Ultimate Administrator in Linux = root
  • Administrator Group in Linux = sudo

SOLUTIONS:

Set Admin:

adduser <username> sudo


View Admins:

sudo apt-get install members
members --all <sudo>


Check if Specific User is an Admin:

groups <user>
if "sudo" shows up, this user is an admin