anthonytranDev
11/5/2017 - 11:26 AM

Bash Shell Advice

Script Run Command as Root

Recommendation that you do not make a script run commands as root

setuid does not work on shell scripts for security reasons. If you want to run a script as root without a password, you can edit /etc/sudoers to allow it to be run with sudo without a password.

Using Sudoer