Chris Green <cl@isbd.net> wrote:
All my pis until now allow me to get root privileges by doing 'sudoAh, I finally found the difference, all systems except the new pi have
-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.
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?
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 <cl@isbd.net> wrote:
All my pis until now allow me to get root privileges by doing 'sudoAh, I finally found the difference, all systems except the new pi have
-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.
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?
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.
On Fri, 8 May 2026 21:39:39 +0100, Chris Green wrote:
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?
It was a deliberate decision to require a password for sudo in the latest release. That's been the norm in most Linux distros for years. Pi was the exception.
Are there release notes anywhere that would have told me?
On Sat, 9 May 2026 09:24:32 +0100, Chris Green wrote:
I wish they'd make this sort of change more explicit. It had me confused
for a while. I have loads of other Linux based systems and I'm used to
them requiring a password for sudo so I don't have an issue with that. I
just don't like things like this changing without the change being noted
somewhere.
The RPi confused me too. If I don't have to give a password for sudo, why
do I even have to type sudo? I like consistent and the Pi was the odd man out.
On 09/05/2026 18:35, rbowman wrote:
On Sat, 9 May 2026 09:24:32 +0100, Chris Green wrote:
I wish they'd make this sort of change more explicit. It had me confused >> for a while. I have loads of other Linux based systems and I'm used to
them requiring a password for sudo so I don't have an issue with that. I >> just don't like things like this changing without the change being noted >> somewhere.
The RPi confused me too. If I don't have to give a password for sudo, why do I even have to type sudo? I like consistent and the Pi was the odd man out.
I always assumed it was there (Pi's sudo) simply to avoid you doing
damage by accident, rather than to prevent others from using your login
to do damage.
On Sat, 9 May 2026 09:24:32 +0100, Chris Green wrote:
I wish they'd make this sort of change more explicit. It had me confused for a while. I have loads of other Linux based systems and I'm used to them requiring a password for sudo so I don't have an issue with that. I just don't like things like this changing without the change being noted somewhere.
The RPi confused me too. If I don't have to give a password for sudo, why
do I even have to type sudo? I like consistent and the Pi was the odd man out.
On 09/05/2026 09:24, Chris Green wrote:
Are there release notes anywhere that would have told me?
I read about it somewhere. It might have been this:
https://www.raspberrypi.com/news/a-security-update-for-raspberry-pi-os/
which I may have come across via this:
https://www.theregister.com/software/2026/04/15/raspberry-pi-os-ends-open-door-policy-for-sudo/5222213
The former is the official word from RPi, though. It's always worth
keeping an eye on the announcements on their website.
Unlike Windows, there are no 'Administrator' accounts that have
extra powers.
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.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 36:23:23 |
| Calls: | 854 |
| Calls today: | 1 |
| Files: | 1,309 |
| D/L today: |
14 files (23,943K bytes) |
| Messages: | 266,425 |