As of RevPi Bookworm (08/2025) all commands with sudo (superuser do) must be confirmed with the password. This setting is determined by the user group sudo and can be customized.

Important
Security Risk

With sudo password prompt disabled, commands that require superuser privileges can be executed without additional authentication.

You can disable the password prompt for sudo commands via Cockpit or use the NOPASSWD option:

▷ Log in to the RevPi via a terminal.

▷ Enter the following command to disable the password prompt:

echo "%sudo ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/050_sudo-group-password-prompt

❯❯ The password prompt is disabled for all users in the user group sudo.

❯❯ The command is stored as an additional rule in the sudoers.d file when sudo is executed.

To reverse the suspendion of the password prompt, enter the following command in the terminal:

echo "%sudo ALL=(ALL) ALL" | sudo tee /etc/sudoers.d/050_sudo-group-password-prompt