Created
March 2, 2020 17:51
-
-
Save faan11/a7c685efbd7f8d5bfd0d022d9e0d498d to your computer and use it in GitHub Desktop.
Freenas permanent shutdown visudo configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo mount -wu / | |
cat visudoadd.txt >> /conf/base/etc/local/sudoers | |
sudo mount -ru / | |
sudo reboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%users ALL = (ALL) NOPASSWD: /sbin/shutdown -p now | |
%users ALL = (ALL) NOPASSWD: /sbin/shutdown -r now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment