Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   May scripts and tasks invoked via rc.local run with root permissions? (http://www.linux-archive.org/ubuntu-user/607368-may-scripts-tasks-invoked-via-rc-local-run-root-permissions.html)

Nils Kassube 12-07-2011 06:03 AM

May scripts and tasks invoked via rc.local run with root permissions?
 
Jay Ridgley wrote:
> I have a situation where I would like to run a script every time the
> system boots. The requirements are such that it must run as root. If
> the owner is specified as root and invoked from rc.local during
> start up will the script in effect run the same as it were invoked
> from the command line with sudo?

/etc/rc.local is run by root already, so your script should run without
special tricks.


Nils

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


All times are GMT. The time now is 01:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.