In LESSON 19 we showed how to add users to the Pi with limited permissions. In this lesson we show how to add a user with Admin privileges just like the default “Pi” user.
Fist you will want to log on as the default “pi” user. After logging on, you can add another user with the command:
once the user is added, you can then give them admin privileges like the pi user my modifying the account with the command:
$ sudo usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,netdev,input,indiecity paul
Now your user “paul” has the same admin privileges as “pi”. However if “paul” tries to execute a sudo command it will ask for his password. If you want “paul” to be able to execute sudo without entering password, you need to do the following:
NOTE: Messing up this file will corrupt your operating system. I suggest STRONGLY making a backup of your system before moving forward. Or, you could just leave things as they are, and “paul” will have to enter password when doing a sudo command
and then you will be nano-editing a file. Add the following to the last line of the file:
paul ALL=(ALL) NOPASSWD: ALL
Then Control o and enter to save the file, and then control x to exit.