BBS: TELESC.NET.BR Assunto: Re: New installation asks for password when I 'sudo -i' De: Knute Johnson Data: Sat, 9 May 2026 10:30:01 +1100 ----------------------------------------------------------- On 5/8/26 15:39, Chris Green wrote: > Chris Greenwrote: >> 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) ----------------------------------------------------------- [Voltar]