BBS:      TELESC.NET.BR
Assunto:  Re: New installation asks for password when I 'sudo -i'
De:       The Natural Philosopher
Data:     Sat, 9 May 2026 03:38:29 +0100
-----------------------------------------------------------
On 08/05/2026 21:39, Chris Green wrote:
> 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?
> 
Everybody is fashionably conscientious about 'security' these days...


-- 
WOKE is an acronym... Without Originality, Knowledge or Education.


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

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