Description
In the documentation for requiring a password for sudo commands it mentions that I have to edit the 010_<username>-nopasswd
file by adding this line:
<username> ALL=(ALL) PASSWD: ALL
The issue is that my installation does not have this file. Instead I have a file called 010_pi-nopasswd
. This already has the following entries:
<username> ALL=(ALL) NOPASSWD: ALL
To my understanding this should not be the case according to the documentation. The file should not have the pi user name in it but the username of the user that I created when flashing the image with Raspberry Pi Imager.
The username I created is definitely very different to "pi".
If I change the values in the 010_pi-nopasswd
file to <username> ALL=(ALL) PASSWD: ALL
it works as intended and requires me to type my password for sudo.
But if I delete the 010_pi-nopasswd
file and instead add the correct file 010_<username>-nopasswd
with <username> ALL=(ALL) PASSWD: ALL
as it's content, then I still do not need to type my password for sudo. It has no effect.
Is this a mistake in the documentation and the file should still be called 010_pi-nopasswd
and not 010_<username>-nopasswd
or is it a bug in the current Raspberry Pi OS Lite?
Here a screenshot of the documentation for quick reference:
Activity