Add user to sudoers again
Bob
ubuntu-qygzanxc at listemail.net
Thu Apr 13 20:10:41 UTC 2017
** Reply to message from Enrique Villalobos <villalobosmiras at gmail.com> on Thu,
13 Apr 2017 10:43:33 +0200
> Thank you all for your responses. This is how I resolved the problem
> after reading all of them:
>
> Press and hold shift button during boot to get into grub menu.
>
> Boot in recovery mode.
>
> This loads a menu. Select root terminal.
>
> Remount root filesystem with read-write permissions: mount -o rw,remount /
>
> Set root password: passwd
>
> Add myuser to sudoers: usermod -a -G sudo myuser
>
> Reboot.
>
> Again, thank you very much.
>
> Regards.
I have not read this list for a few days so I am a little late for the party.
When I first started using Ubuntu I made the same error because the Ubuntu book
I bought had a typo and they left out the -a parameter in their sample command.
I found the easiest way to recover was to copy the backup file over the
original file.
> 2017-04-12 20:03 GMT+02:00 Robert Heller <heller at deepsoft.com>:
> > You can also boot into single user mode and get the same level of
> > functionallity.
> >
> > At Wed, 12 Apr 2017 18:27:04 +0200 "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
> >
> >>
> >> Hi,
> >>
> >> if you lose superuser permissions for what ever reason, maybe because
> >> you just forgot the password, simply use a live media, than get
> >> root access to the installed Linux via chroot or systemd-nspawn and
> >> change the password, add a user to what groups ever etc.,
> >> https://help.ubuntu.com/community/LiveCdRecovery#Lost_Password .
> >>
> >> Regards,
> >> Ralf
> >>
> >>
> >
> > --
> > Robert Heller -- 978-544-6933
> > Deepwoods Software -- Custom Software Services
> > http://www.deepsoft.com/ -- Linux Administration Services
> > heller at deepsoft.com -- Webhosting Services
--
Robert Blair
Democracy must be something more than two wolves and a sheep voting on what to have for dinner. -- James Bovard, Civil Libertarian (1994)
More information about the ubuntu-users
mailing list