• Re: New installation asks for password when I 'sudo -i'

    From Knute Johnson@3:633/10 to All on Sat May 9 10:30:01 2026
    On 5/8/26 15:39, Chris Green wrote:
    Chris Green <[email protected]> wrote:
    All my pis until now allow me to get root privileges by doing 'sudo
    -i' without entering my password.

    One I have just installed does request my password when I do 'sudo -i'.

    Can anyone suggest why this new one acts differently?

    I have checked that /etc/sudoers is the same on the new system as on
    all others. I have also checked that my user is in all the same
    groups in /etc/group.

    All systems are running the latest Raspbian with kernel 6.12.75.

    Ah, I finally found the difference, all systems except the new pi have
    a file /etc/sudoers.d/010_pi-nopasswd which provides the no password
    "sudo -i".

    The remaining question is why the latest system didn't get this file installed. Has rpi-imager been changed so that it no longer installs
    it?


    As I understand it, the latest OS image now has that limitation that you
    need a password for sudo. My Xubuntu desktop has been like that for
    years. 25 years ago I had BSD installed on a 386 and it required a
    separate password for root. They are just trying to make the computers
    a little more secure. They got rid of pi and raspberry a couple of
    years ago. This is just one more step in that direction.

    --

    Knute Johnson

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris Green@3:633/10 to All on Fri May 8 21:20:54 2026
    All my pis until now allow me to get root privileges by doing 'sudo
    -i' without entering my password.

    One I have just installed does request my password when I do 'sudo -i'.

    Can anyone suggest why this new one acts differently?

    I have checked that /etc/sudoers is the same on the new system as on
    all others. I have also checked that my user is in all the same
    groups in /etc/group.

    All systems are running the latest Raspbian with kernel 6.12.75.

    --
    Chris Green


    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris Green@3:633/10 to All on Fri May 8 21:39:39 2026
    Chris Green <[email protected]> wrote:
    All my pis until now allow me to get root privileges by doing 'sudo
    -i' without entering my password.

    One I have just installed does request my password when I do 'sudo -i'.

    Can anyone suggest why this new one acts differently?

    I have checked that /etc/sudoers is the same on the new system as on
    all others. I have also checked that my user is in all the same
    groups in /etc/group.

    All systems are running the latest Raspbian with kernel 6.12.75.

    Ah, I finally found the difference, all systems except the new pi have
    a file /etc/sudoers.d/010_pi-nopasswd which provides the no password
    "sudo -i".

    The remaining question is why the latest system didn't get this file
    installed. Has rpi-imager been changed so that it no longer installs
    it?

    --
    Chris Green


    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Mon May 11 13:30:01 2026
    On 10 May 2026 12:27:35 +0100 (BST), Theo wrote:

    Unlike Windows, there are no 'Administrator' accounts that have
    extra powers.

    ?root? is an actual ?account that has extra powers?. Yes, it?s easy
    enough to set things up so you can log directly into it. It?s your
    machine, not under the control of Apple or Microsoft, you can do what
    you like.

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Theo@3:633/10 to All on Mon May 11 12:25:44 2026
    Lawrence D?Oliveiro <[email protected]d> wrote:
    On 10 May 2026 12:27:35 +0100 (BST), Theo wrote:

    Unlike Windows, there are no 'Administrator' accounts that have
    extra powers.

    ?root? is an actual ?account that has extra powers?. Yes, it?s easy
    enough to set things up so you can log directly into it. It?s your
    machine, not under the control of Apple or Microsoft, you can do what
    you like.

    On Windows, you have have a regular account with administrator privileges,
    and that account can Do More Stuff. Most of the time you're being you, and
    not being administrator - it's just that your account can do those extra
    things when needed.

    On Linux, root has administrator privileges but it's a Very Bad Idea to
    use root as a regular user account, especially at the GUI. So typically you just borrow the use of root for a short while to do something and then drop back to a non-root user.

    In one way of doing things you can 'login as root' eg on a console, do your things, then logout. sudo is just a way to make that more convenient when
    you are logged in as another user.

    That's not to say you can't login as root on the GUI and run your web
    browser, but you may find things don't work properly. There are
    increasingly more checks that say things like 'if uid==0 then error else
    ...' to guard against exploits where the attacker gets root privs.

    Theo

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)