How to make sudo ask for password each time specific commands are run?

I run ubuntu 16.04 / 18.04 I want to make sure that the users do not accidentally poweroff or reboot remote machines, yet I need to give them the ability to poweroff/reboot after their password is typed in So, I have some lines in our sudoers like: Defaults env_reset,timestamp_timeout=10 odev1 ALL=(ALL) NOPASSWD: /usr/bin/apt-get,/bin/mount,/usr/bin/minicom odev1 ALL=(ALL)…

Details