BBS:      TELESC.NET.BR
Assunto:  Re: New installation asks for password when I 'sudo -i'
De:       Chris Green
Data:     Fri, 8 May 2026 21:39:39 +0100
-----------------------------------------------------------
Chris Green  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)

-----------------------------------------------------------
[Voltar]