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
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 |