Recovering root access in Ubuntu
(07-26-2017, 01:05 PM)Scientomancer Wrote: Yesterday I had cause to add the ubuntu user to the www-data group. I believe I did this:

# usermod -G www-data ubuntu

Since then, I am unable to become root. If I try to sudo -i, I am told

Sorry, user ubuntu is not allowed to execute '/bin/bash' as root on pine64.

This happens no matter what command I try to run. sudo vim /etc/sudoers?

Sorry, user ubuntu is not allowed to execute '/usr/bin/vim /etc/sudoers' as root on pine64.

I don't actually know if adding ubuntu to a group caused this; it's just the biggest change I've made, and I can't think of anything else I've done that would cause this.


hi,   hmmm  not run into anyone trying to do this to themselves before;

... do you really want anyone in the www-data group to also be in the soduers file ?   ... probably not.

While I'm not precisely sure what you have done to yourself, you can undo it by placing the SD card into another linux machine and mounting the ext4 partition containing /rootfs and removing the offending change.
marcushh777    Cool

please join us for a chat @   or ssl

( I regret that I am not able to respond to personal messages;  let's meet on irc! )

Messages In This Thread
RE: Recovering root access in Ubuntu - by MarkHaysHarris777 - 07-26-2017, 01:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Ubuntu server 20.04 request phi0x 2 1,112 12-30-2020, 08:02 PM
Last Post: phi0x
  SPI on ubuntu IlyaM 4 4,538 07-16-2018, 03:00 AM
Last Post: kingflab
  Ubuntu password not working joemassimino 4 3,995 05-18-2018, 03:33 PM
Last Post: Luke
  After flashing Ubuntu- how to get graphical desktop Partymack711 6 5,354 02-01-2018, 09:45 AM
Last Post: Partymack711
  (ARCHIVED) Ubuntu Xenial Image (BSP Kernel) longsleep 337 334,072 01-31-2018, 11:58 AM
Last Post: Luke
  PPTP doesnt work with ubuntu escovedo 2 4,913 08-23-2017, 09:28 AM
Last Post: gilbertotcc
Question HELP Ubuntu Mate password recovery procedure Captain Anni Hilator 5 5,323 08-03-2017, 03:52 PM
Last Post: Luke
  Ubuntu boot very slow with wifi driver remainder 9 13,736 08-03-2017, 07:23 AM
Last Post: victorssantos
  Pine64 2Gb Ubuntu Mono not updating and stuck petec 0 1,570 07-08-2017, 09:34 AM
Last Post: petec
  Ubuntu Xenial - Firefox add support for H264 and EAC3 klode 1 2,728 05-26-2017, 11:10 AM
Last Post: Gnx

Forum Jump:

Users browsing this thread: 1 Guest(s)