Groups | Search | Server Info | Login | Register


Groups > comp.sys.raspberry-pi > #37943

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

From Knute Johnson <knute2025@585ranch.com>
Newsgroups comp.sys.raspberry-pi
Subject Re: New installation asks for password when I 'sudo -i'
Date 2026-05-08 16:33 -0500
Organization A noiseless patient Spider
Message-ID <10tlkrn$34bm1$1@dont-email.me> (permalink)
References <66t1dm-6rmr2.ln1@q957.zbmc.eu> <b9u1dm-empr2.ln1@q957.zbmc.eu>

Show all headers | View raw


On 5/8/26 15:39, Chris Green wrote:
> Chris Green <cl@isbd.net> 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

Back to comp.sys.raspberry-pi | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

New installation asks for password when I 'sudo -i' Chris Green <cl@isbd.net> - 2026-05-08 21:20 +0100
  Re: New installation asks for password when I 'sudo -i' Chris Green <cl@isbd.net> - 2026-05-08 21:39 +0100
    Re: New installation asks for password when I 'sudo -i' Knute Johnson <knute2025@585ranch.com> - 2026-05-08 16:33 -0500
    Re: New installation asks for password when I 'sudo -i' rbowman <bowman@montana.com> - 2026-05-09 00:50 +0000
      Re: New installation asks for password when I 'sudo -i' Chris Green <cl@isbd.net> - 2026-05-09 09:24 +0100
        Re: New installation asks for password when I 'sudo -i' Daniel James <daniel@me.invalid> - 2026-05-09 10:47 +0100
          Re: New installation asks for password when I 'sudo -i' Richard Kettlewell <invalid@invalid.invalid> - 2026-05-10 10:49 +0100
        Re: New installation asks for password when I 'sudo -i' rbowman <bowman@montana.com> - 2026-05-09 17:35 +0000
          Re: New installation asks for password when I 'sudo -i' The Natural Philosopher <tnp@invalid.invalid> - 2026-05-10 00:55 +0100
            Re: New installation asks for password when I 'sudo -i' Chris Green <cl@isbd.net> - 2026-05-10 08:45 +0100
              Re: New installation asks for password when I 'sudo -i' rbowman <bowman@montana.com> - 2026-05-10 17:21 +0000
          Re: New installation asks for password when I 'sudo -i' Theo <theom+news@chiark.greenend.org.uk> - 2026-05-10 12:27 +0100
            Re: New installation asks for password when I 'sudo -i' Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-05-10 19:46 +0000
              Re: New installation asks for password when I 'sudo -i' Theo <theom+news@chiark.greenend.org.uk> - 2026-05-11 12:25 +0100
    Re: New installation asks for password when I 'sudo -i' The Natural Philosopher <tnp@invalid.invalid> - 2026-05-09 03:38 +0100
  Re: New installation asks for password when I 'sudo -i' "wibble@bibble.com.invalid" <wibble@bibble.com.invalid> - 2026-05-09 12:09 +0100

csiph-web