Skip to content

Instantly share code, notes, and snippets.

@ishrakr
Last active July 23, 2018 21:12
Show Gist options
  • Save ishrakr/d86af96b6e0af599f31d71e25f2610c6 to your computer and use it in GitHub Desktop.
Save ishrakr/d86af96b6e0af599f31d71e25f2610c6 to your computer and use it in GitHub Desktop.
// Add super user permissions to user
visudo
%admin ALL=(ALL) NOPASSWD: ALL
groupadd admin
usermod -aG admin username
// Remove group from user
gpasswd -d username group
// Remove password from user
passwd -d username
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment