Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

Raspberry Pi OS • Enforce sudo password: best way?

$
0
0
Hi

Setting up the new Trixie on the Pi4 I find sudo won't ask for user password. Some searches and learning shows this is a Raspberry Pi OS specific setting that comes from 2 files in /etc/sudoers.d/, 010_pi-nopasswd and 90-cloud-init-users.

Please what is the recommanded way to enforce password for sudo for the first and single user created by Pi Imager: rename the 2 files appending a tilde in the filename end, or deleting them, or commenting the single active line in each?... or something else, maybe? Or maybe this is discourage at all as something in the Raspberry's guts uses the first user to call sudo behind the scene?

Thank you

Statistics: Posted by SyncBerry — Sun Feb 01, 2026 5:34 pm — Replies 5 — Views 88



Viewing all articles
Browse latest Browse all 7503

Trending Articles