sudo: /usr/bin/sudo must be owned by uid 0
-
please help. i must've entered the wrong command when in the terminal and now I'm getting the error "sudo: /usr/bin/sudo must be owned by uid 0" and i don't know what to do. I've looked online and cant seem to find anything to help. if someone can help, please.
-
Reinstall is your quickest option. Permissions may be fixed by using a separate Linux system to mount for
/
partition from the sdcard or by booting into safe mode (so you can haveroot
access automatically), but unless you're familiar with Linux and terminal commands, then reinstalling is way faster (and safer). -
okay i will try gain but i already reinstalled twice and all I've been trying to do is put a theme into retro pie using WinSCP. i think the command I was using was :"chmod -R 777 /" so I don't know if I was changing to many permissions or what.
-
@StrangeJaguar said in sudo: /usr/bin/sudo must be owned by uid 0:
okay i will try gain but i already reinstalled twice and all I've been trying to do is put a theme into retro pie using WinSCP.
You can also copy if via file shares, to
\\retropie\configs\all\emulationstation\themes
. Which instructions are you using ?i think the command I was using was :"chmod -R 777 /" so I don't know if I was changing to many permissions or what.
Yes, that command will break permissions system wide and - at least -
sudo
will stop working. Don't run it again. -
If you have a spare usb stick you can copy/paste the theme using RetroPie file manager. I used successfully the same method recently to transfer my theme because it failed from sftp FileZilla.
Now that mitu mentions it, it seems that I put the theme here : /etc/emulationstation/themes and maybe that's why it failed from FTP .
-
Ok thank you. im gonna reinstall retropie and use that instead
-
@windg said in sudo: /usr/bin/sudo must be owned by uid 0:
Now that mitu mentions it, it seems that I put the theme here : /etc/emulationstation/themes and maybe that's why it failed from FTP .
Yes, that's a root folder and so you need root permissions to work there.
Custom themes or those you want to edit should be placed in
~/.emulationstation/themes
or/opt/retropie/configs/all/emulationstation/themes
(they're the same, via symlink) where they can be worked on by the regular user.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.