You are Here:
Linux Lite 4.6 RC1 has been released. See the Release Announcements section for more information.



User and Sudo passwords

Author (Read 981 times)

0 Members and 6 Guests are viewing this topic.

User and Sudo passwords
« on: June 26, 2019, 10:31:48 AM »
 

D_Blaze

  • New to Forums
  • *
  • 10
    Posts
  • Country: au
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.4 64bit

  • CPU: Intel Celeron N3050 1.60GHz

  • MEMORY: 2Gb

  • VIDEO CARD: Mesa DRI Intel HD Graphics 400 (Braswell)
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
Last Edit: June 26, 2019, 10:38:14 AM by D_Blaze
 


Re: User and Sudo passwords
« Reply #1 on: July 08, 2019, 10:31:08 PM »
 

bernard stafford

  • KoFi Supporter
  • Occasional Poster
  • *****
  • 62
    Posts
  • Country: us
  • Reputation: 5

  • Linux Lite: 4.4 64bit

  • MEMORY: 8Gb
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: [Select]
sudo usermod -d /path/to/new/homeOne 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.  :'(
launchpad.net <-               Kernel 5.2.0
debian.org <-
GitHub.com <-
kde.org <-
I stay busy with LINUX,
Together we are LINUX...!
 


Tags:
 


Linux Lite 4.6 RC1 has been released. See the Release Announcements section for more information.