So, I just updated from 3.5 to 3.6, all went well until I edited the Es_systems.cfg
Just a couple routine edits, removed \ added some rom filter extentions.. No big deal.
It was the way I edited it.. See I have altered the Samba shares so I can get to the file easily, in previous versions the permissions on the file wasnt a big deal. I included a snippet below of my SMB config entry (at the end of my post). The issue I believe started with the force user ROOT
Once I edited that file, I could no longer restart \ shutdown from the retropie emnu. I think this new version wanted to do something with the file and it was no longer owner.
So. being the idiot I am ran this command.
sudo chown pi:pi /etc/emulationstation/es_systems.cfg
I thought it would change the owner back to pi… it didnt. it gave me another error.
In my infinate wisdom (or lack there of) I ran this command.
sudo chown -R pi:pi /etc/
I thought, this may force it.. boy it did alot more than that. Its like ROOT is gone. I cannot Sudo anything.
And when I try and shutdown or alter any settings now I get this nifty error.
NO VALID SUDOERS FOUND, Quitting, Sudoers is owned by UID 1000 , should be 0
Unable to initilize policy plugin
Is there a way to fix this that does not invole starting over.. Please linux gurus I need some help here.
comment = ES Menu
path = /etc/emulationstation/
writable = yes
guest ok = yes
read only = no
inherit acls = yes
public = yes
create mask = 0775
directory mask = 0775
force user = root
I can’t help with your permissions issues but for future reference, you can create a copy of es_systems.cfg in the /home/pi/.emulationstation folder and make your changes here. ES will use this one before the one in etc/emulationstation.
You don’t have to include any systems that you are not using but you will need to remember to update it from the one in etc/emulationstation if you install new systems.
it appears root is not enabled and I cant set a root password with sudo as it is broken. Otherwise I blieve meneerjansen would have got me straightend up. I have leared alot about linux with this fun project. I have a backup I made with Winimage thankfully that isnt too far behind.
Dudleydes , thank for your suggestion. I will use your idea.
Thanks everyone for your time. We can close this. It is totally my fault and the resolution is to start over and dont do what I did again.