Linux Lite Forums
User and Sudo passwords - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Installing Linux Lite (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=17)
+--- Thread: User and Sudo passwords (/showthread.php?tid=6267)



User and Sudo passwords - D_Blaze - 06-26-2019

When installing i was asked to create a username and password.
this same password also became the password for sudo
is there anyway to change the password for sudo so it is different to my username password? (i would prefer to keep the password for the username and have a different password for sudo)

Looking at the manual i'm thinking i could create a new 'sudo' user, give it sudo group access, then remove my user from sudo group access. This way i will have a new password for sudo that's diff from my user password. Is this the best way of accomplishing this?

Cheers
Daniel


Re: User and Sudo passwords - bernard stafford - 07-09-2019

What I found out you are correct. Just don't delete the other account as you described.
You can create a separate account with sudo access but without a separate home folder 
then add this user to the same group as the normal user and set it to use the same home folder with
Code:
sudo usermod -d /path/to/new/home
One account for normal usage and the other allowed to use sudo.  8)

There is a way to do this by overriding the PAM (Pluggable Authentication Module)
settings for the sudo service. Do this at great risk to your machine - don't just copy and paste .
test test test! - before logging it out of terminal.  :'(