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?
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 <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?
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?
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.
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.
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 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.
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.
The Natural Philosopher <tnp@invalid.invalid> wrote:
On 09/05/2026 18:35, rbowman wrote:Yes, that's how I've always thought of it on the Pi, it's a way to meke
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.
sure you know that you have root privelege rather than s security thing.
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.
rCLrootrCY is an actual rCLaccount that has extra powersrCY. Yes, itrCOs easy enough to set things up so you can log directly into it. ItrCOs 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: | 08:05:53 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
1 files (1,366K bytes) |
| Messages: | 264,936 |