You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



User and Sudo passwords

Author (Read 8958 times)

0 Members and 2 Guests are viewing this topic.

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

bernard stafford

  • KoFi Supporter
  • Occasional Poster
  • *****
  • 72
    Posts
  • Reputation: 7
    • View Profile

  • MEMORY: 8Gb

  • Kernel: 5.x
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 <- 
debian.org <-
GitHub.com <-
kde.org <-
I stay busy with LINUX,
Together we are LINUX...!
 

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

D_Blaze

  • New to Forums
  • *
  • 10
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • 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: November 12, 2019, 10:12:50 PM by firenice03 »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section