lost root access

Jack McGee jack at greendesk.net
Mon Jan 7 01:48:28 UTC 2019


On 1/6/19 2:57 PM, Matthew Crews wrote:
> On 1/6/19 1:35 PM, Jack McGee wrote:
>> I had a user on a 18.04 machine that had root access, using sudo, but it
>> lost it.  This just between reboots.
> *snip*
>>
>> How I get root access back?
> 
> First, I would double check that you are logged into a user that is
> supposed to have root access. Silly, I know, but extra sanity checks
> never hurt.
> 
> Assuming that is correct, I would fire up an Ubuntu Live disk, and
> modify your /etc/sudoers file to include something like this:
> 
> # User privilege specification
> mythuser    ALL=(ALL:ALL) ALL
> 
> 
> Then reboot the box as normal, and it should work.

Booting with Live USB and editing sudoers worked.  Thank you!  I sure 
would like to know how it changed to take that user out.





More information about the ubuntu-users mailing list