Add new user using the following command
sudo adduser newusername
Enter password for this username and fill fields if you wish
Confirm the information is correct and enter "y"
You have user added with very basic privileges.
You now need to set a user up with sudo access previlegies
We need to edit /etc/sudoers file as sudo
sudo visudo
Add new line under the following
root ALL=(ALL:ALL) ALL
newusername ALL=(ALL:ALL) ALL
Ctrl + x to save this file
Delete .tmp off the end of the file name so it reads /etc/passwd
Enter Y to confirm overwriting the file
Add username newusername to group sudo
usermod -a -G sudo newusername
To verify this run
cat /etc/group |grep newusername
Similar Posts:
- None Found