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

    Quitting to terminal prompts for password

    Scheduled Pinned Locked Moved Help and Support
    4 Posts 4 Posters 889 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.
    • G
      General_Toxic
      last edited by

      Hi All,

      I recently changed my retropie password for security reasons and was wondering if there was a way to make it so when you exit emulation station (F4) back to the terminal there's a way of prompting it to ask for the pi users password again?

      At the moment by default it logs in as pi even without the password.

      Regards,

      1 Reply Last reply Reply Quote 0
      • free8bitF
        free8bit
        last edited by

        Open the sudoers file:
        sudo nano /etc/sudoers

        Look for a line like this:
        pi ALL=(ALL) NOPASSWD: ALL

        Change this line with this:
        pi ALL=(ALL:ALL) ALL

        Keep in mind that every time you want to install something, reboot or shutdown you will need to enter your password.

        RicR 1 Reply Last reply Reply Quote 0
        • RicR
          Ric @free8bit
          last edited by

          @free8bit I have added the line pi ALL=(ALL) PASSWD: ALL editing the sudoers "sudo nano /etc/sudoers". It is ok for me but, I would like to know how to avoid the sudo password request at shutdown. Thanks

          mituM 1 Reply Last reply Reply Quote -1
          • mituM
            mitu Global Moderator @Ric
            last edited by

            @Ric Please don't re-open 4 years old topics - you should have opened a new topic.

            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.