07-26-2017, 01:41 PM
(This post was last modified: 07-26-2017, 01:42 PM by MarkHaysHarris777.)
(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:
Code:# usermod -G www-data ubuntu
Since then, I am unable to become root. If I try to sudo -i, I am told
Code: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?
Code: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.
Thanks!
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
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )