May scripts and tasks invoked via rc.local run with root permissions?
ljedamus at googlemail.com
Wed Dec 7 09:31:46 UTC 2011
Am 07.12.2011 02:39, schrieb Jay Ridgley:
> 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?
Maybe not. When you are logged in, there's the environment as your
normal user. Now when you run a script with rc.local there is not the
empty the bit bucket on /dev/null.
More information about the ubuntu-users