Like any init script, the /etc/rc.local script is executed by the root user and you do not need to prepend either su or sudo to the commands/programs that need to run as root.

https://unix.stackexchange.com/questions/210939/what-user-runs-the-commands-defined-in-etc-rc-local

Leave a comment