Dec 26, 2015 07:51 AM
(This post was last modified: Dec 26, 2015 07:51 AM by iCyber.)
How to add user with sudo privileges in Ubuntu 14.04 via Terminal/SSH:
First when you start up enter:
$ adduser USERNAME
You have just created a new user.
Next you want to open up visudo by typing:
$ visudo
From here you will be able to give a user sudo privileges.
Use your arrow keys to navigate down to:
# User privilege specification
root ALL=(ALL:ALL) ALL
You are going to want to hit the "O" key and edit the file to look like this:
# User privilege specification
root ALL=(ALL:ALL) ALL
USERNAME ALL(ALL:ALL) ALL
Next hit [ESC] and then type ":X" and hit [ENTER]
Congratulations, you now have a user with sudo privileges!
To switch to your new user type:
$ su USERNAME
It will prompt you for the password you set up when you created the user.
Your command line will then look something like this:
USERNAME@HOST:/root$
Then if you type "$ cd" it will take you back to the normal directory of "USERNAME@HOST~$"
Thanks for following this tutorial, I hope it was useful!
Pastebin ----> https://pastebin.com/zRVpUD9G
First when you start up enter:
$ adduser USERNAME
You have just created a new user.
Next you want to open up visudo by typing:
$ visudo
From here you will be able to give a user sudo privileges.
Use your arrow keys to navigate down to:
# User privilege specification
root ALL=(ALL:ALL) ALL
You are going to want to hit the "O" key and edit the file to look like this:
# User privilege specification
root ALL=(ALL:ALL) ALL
USERNAME ALL(ALL:ALL) ALL
Next hit [ESC] and then type ":X" and hit [ENTER]
Congratulations, you now have a user with sudo privileges!
To switch to your new user type:
$ su USERNAME
It will prompt you for the password you set up when you created the user.
Your command line will then look something like this:
USERNAME@HOST:/root$
Then if you type "$ cd" it will take you back to the normal directory of "USERNAME@HOST~$"
Thanks for following this tutorial, I hope it was useful!
Pastebin ----> https://pastebin.com/zRVpUD9G


![[Image: dMWt3AV.gif]](https://i.imgur.com/dMWt3AV.gif)


![[Image: 4bj39qK.png]](https://i.imgur.com/4bj39qK.png)