By default on raspberry OS, sudo won’t ask for password when invoked.
If you want to insert the password when you type sudo you need to comment with # this file:
/etc/sudoers.d/010_pi-nopasswd
By default on raspberry OS, sudo won’t ask for password when invoked.
If you want to insert the password when you type sudo you need to comment with # this file:
/etc/sudoers.d/010_pi-nopasswd