how to autorun script at startup as administrator?
Daniel Gorbe
mail at danielgorbe.com
Wed Dec 18 20:15:48 UTC 2019
Hi!
I dont know the full story, i joined today, but maybe you want a systemd
service:
https://www.linode.com/docs/quick-answers/linux/start-service-at-boot/
With:
"User=root"
^ this execute your script as root
On 12/18/19 8:45 PM, Dave Stevens wrote:
> On Mon, 16 Dec 2019 23:24:17 -0500
> Little Girl <littlergirl at gmail.com> wrote:
>
>> I see it there, thanks so much!
>>
>> I'm glad it helped. I've used it for years for my daily reminders
>> script and my wallpaper changer script (neither of which I can live
>> without) and it's rock solid.
> hmmmmmmm...
>
> glad to see the option and will use it with thanks. But.
> I need to have a program run on power up remotely and without
> intervention (no login) and as administrator.
>
>
> I've looked further and rc.local seems like a good candidate but I
> don't know how I can run with elevated privileges, I've only ever used
> sudo and won't necesarily (or likely) be around to intervene. In fact
> avoiding the intervention is the point.
>
> Can anyone point me in the direction of a script running as admin
> without intervention?
>
> d
>
--
Daniel Gorbe
GNU/Linux System Administrator - IT Security Specialist
PGP: 0x5AEB729B3E642A16
Web: https://danielgorbe.com
More information about the ubuntu-users
mailing list