• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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 2 Nov 2023, 23:46

    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
    • M
      mitu Global Moderator
      last edited by 3 Nov 2023, 04:48

      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 3 Nov 2023, 11:57

        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.

        M 1 Reply Last reply 3 Nov 2023, 12:22 Reply Quote 0
        • M
          mitu Global Moderator @StrangeJaguar
          last edited by 3 Nov 2023, 12:22

          @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
          • W
            windg
            last edited by windg 11 Mar 2023, 12:41 3 Nov 2023, 12:24

            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 3 Nov 2023, 15:39 Reply Quote 0
            • S
              StrangeJaguar
              last edited by 3 Nov 2023, 14:17

              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 3 Nov 2023, 15:39

                @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
                7 out of 7
                • First post
                  7/7
                  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.

                  This community forum collects and processes your personal information.
                  consent.not_received