Re: Run script as root without sudo

From: Jonathan Chen <>
Date: Thu, 19 Aug 2021 06:16:32 UTC
On Thu, 19 Aug 2021 at 17:33, Aristedes Maniatis via freebsd-stable
<> wrote:
> How else can I get this script running as root remotely in a completely
> unattended way?

The way it's usually done is with an rc script in /usr/local/etc/rc.d, eg:

and add the entry into /etc/rc.conf:

The FreeBSD AWS instances uses this method to auto-install required packages.

Jonathan Chen <>