I am trying to run my script at startup but it doesn't run the script as root.
Do I need to add my root username and password in the script, or somewhere else?
Thanks, let me know if you need more info I get back asap.
I am trying to run my script at startup but it doesn't run the script as root.
Do I need to add my root username and password in the script, or somewhere else?
Thanks, let me know if you need more info I get back asap.
Last edited by jesuscamp; July 30th, 2010 at 01:47 AM.
couple of methods of doing this.
You could add your script to the /etc/init.d/ and then enable it with update-rc.d
or
You could add it to root's crontab with the @reboot directive.
Either method will run the script with root's credentials.
Bookmarks