Skip to content

Instantly share code, notes, and snippets.

@NewFuture
Last active April 24, 2016 07:31
Show Gist options
  • Save NewFuture/abdceee1538949769846 to your computer and use it in GitHub Desktop.
Save NewFuture/abdceee1538949769846 to your computer and use it in GitHub Desktop.
linux-add-user
adduser newuser
passwd newuser
groupadd admin
usermod -G admin newuser
vim  /etc/sudoers
%admin       ALL=(ALL)       NOPASSWD: ALL
vim  /etc/passwd
test:x:502:502::/home/test:/bin/bash
#!/bin/bash
sudo adduser newfuture
sudo groupadd admin
sudo usermod -G admin newfuture
sudo passwd newfuture
sudo vim /etc/sudoers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment