Add user to sudoers again

Enrique Villalobos villalobosmiras at gmail.com
Thu Apr 13 08:43:33 UTC 2017


Hello,

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.

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
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list