You are Here:
Linux Lite 5.0 Final is now available for download and installation



[ SOLVED ] Sudo and sudoers

Author (Read 559 times)

0 Members and 4 Guests are viewing this topic.

Sudo and sudoers
« on: June 28, 2020, 01:37:27 AM »
 

Monkepats

  • New to Forums
  • *
  • 2
    Posts
  • Country: us
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: intel 1.8

  • MEMORY: 4Gb

  • VIDEO CARD: MVIDIA
I am an out of practice Unix IT. Using Linux Lite 5. Wanted to change my users name, which I did through the terminal and vi. changed it in passwd and shadow, forgot to manually add a root password and to edit the sudoers file. now I can log in as myself, but I can not SU or SUDO. how can I get root access to either add my login to sudoers file or login as root at the "Alt F2" login. In the shadow file root has an "!" in the passwd file/

what can I do? can anybody help me?
Last Edit: June 28, 2020, 06:52:09 PM by Jerry
 


Re: Sudo and sudoers
« Reply #1 on: June 28, 2020, 04:37:51 PM »
 

Monkepats

  • New to Forums
  • *
  • 2
    Posts
  • Country: us
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: intel 1.8

  • MEMORY: 4Gb

  • VIDEO CARD: MVIDIA
I'm answering my own post.  After thinking on it a little, the fix was easy.
I booted from the usb drive in safe mode, mounted the primary filesystem and edited the file
as "root". Thank you for your patience, Been using Mint for a few years and never ran into
this problem before.  we live to learn. ;)
 


Tags: root sudo sudoers 
 


Linux Lite 5.0 Final is now available for download and installation