RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    sudo: /usr/bin/sudo must be owned by uid 0

    Scheduled Pinned Locked Moved Help and Support
    sudoterminal
    7 Posts 4 Posters 632 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      StrangeJaguar
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        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 have root access automatically), but unless you're familiar with Linux and terminal commands, then reinstalling is way faster (and safer).

        1 Reply Last reply Reply Quote 0
        • S
          StrangeJaguar
          last edited by

          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.

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @StrangeJaguar
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • windgW
              windg
              last edited by windg

              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 .

              My English isn't at a good level.

              S 1 Reply Last reply Reply Quote 0
              • S
                StrangeJaguar
                last edited by

                Ok thank you. im gonna reinstall retropie and use that instead

                1 Reply Last reply Reply Quote 0
                • S
                  sleve_mcdichael @windg
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post

                  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.