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

    pkexec root password?

    Scheduled Pinned Locked Moved Help and Support
    sudoerssudochmod
    5 Posts 2 Posters 582 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.
    • AlturisA
      Alturis
      last edited by

      So I might have gotten myself into a pickle here. Was attempting to enable write permissions for etc/emulationstation so that I could SFTP some config changes there.

      I mistakenly, apparently, tried to do the entire etc folder with

      sudo -R -v chmod 777 etc

      from the root folder

      Now I cannot connect via SFTP at all, and when I tried to repair this with

      sudo -R -v chmod 775 etc

      I got

      sudo: /etc/sudoers is world writable
      and it errors

      I looked up how to fix that and apparently

      pkexec chmod 775 /etc/sudoers

      Is supposed to fix it. But the problem now is that pkexec appears to work exclusively with the root user and it seems that retropie disables the root user. At any rate it asks for a password for the root user and I have not been able to find out what that password should be by default. Or maybe it simply fails no matter what password is entered if he root user is disabled?

      RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

      AlturisA 1 Reply Last reply Reply Quote 0
      • AlturisA
        Alturis @Alturis
        last edited by

        Well, I had all of my setup progress saved so I am in the process now of starting with a fresh image and will be able to quickly get back to where I was. Would rather that the etc folder and all of its children be properly permissioned as it should be and will be wiser now when attempting to chmod /etc/emulationstation and only do it to the folder itself.

        RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

        1 Reply Last reply Reply Quote 0
        • BuZzB
          BuZz administrators
          last edited by BuZz

          If you want to customise es_systems.cfg you don't need to edit the one in /etc/emulationstation

          See https://retropie.org.uk/docs/EmulationStation/#es_systemscfg-edits

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          AlturisA 1 Reply Last reply Reply Quote 0
          • AlturisA
            Alturis @BuZz
            last edited by

            @buzz
            "If you want to customise es_systems.cfg you don't need to edit the one in /etc/emulationstation"

            I was actually needing to update art assets in the custom theme that I had customized. But I will check out that link too thanks!

            RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

            AlturisA 1 Reply Last reply Reply Quote 0
            • AlturisA
              Alturis @Alturis
              last edited by

              Ah cool I see it works with themes too. Ah well. ;)

              RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

              1 Reply Last reply Reply Quote 0
              • 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.