I've lost sudo access and I don't really understand why

Chris Green cl at isbd.net
Thu Mar 19 12:15:38 UTC 2020


On Thu, Mar 19, 2020 at 08:54:28AM +0000, Chris Green wrote:
> On Thu, Mar 19, 2020 at 12:04:07AM +0100, Tom H wrote:
> > > You'll have to reboot in single-user mode (or reboot to the initramfs
> > > shell, if you want to do more work) and run
> > >
> > > usermod -aG sudo chris
> > 
> > I've just realized that you might not be able to use single-user mode
> > without being able to use sudo.
> > 
> I think one becomes root in single user mode, at least I hope one
> does! (OP here).
> 
Yes, dead simple, it took only a minute or so.  Reboot, hit ESC,
select recovery mode and then 'drop to root prompt'.  Do the required
usermod command, restart and all is well again.

Thanks everyone for the various comments and help.

-- 
Chris Green




More information about the ubuntu-users mailing list