Skip to content

Incorrect Documentation for requiring sudo Password #4046

Open
@masselmello

Description

@masselmello

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:

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions