a guest Aug 20th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- permit nopass :wheel as root cmd /sbin/poweroff
- permit nopass :wheel as root cmd /sbin/reboot
- permit :wheel
- $ poweroff
- $ doas poweroff
- sudo visudo
- %group_name ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown
- user_name ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown
- alias poweroff='sudo poweroff'
- source ~/.bash_aliases
RAW Paste Data