Date: Thu, 19 Aug 2021 02:41:39 -0400 From: Matt Garber <matt.garber@gmail.com> To: ari@ish.com.au Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: Run script as root without sudo Message-ID: <CANwXMPOGKjuasTDk-9L=9%2Byede2BKW4Nxk=hz%2Bed1D8J%2BfSUSQ@mail.gmail.com> In-Reply-To: <f163070a-03a8-7b37-e2e8-7e6c3d3169d8@ish.com.au> References: <a7d48318-6b21-231e-1042-2d2daad72c50@ish.com.au> <CAJuc1zP_xLCz-SP4yvr2_m4zKFWVxBdDfMXBtjXSpaD=N=O6WA@mail.gmail.com> <f163070a-03a8-7b37-e2e8-7e6c3d3169d8@ish.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000073197805c9e3d8f7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > That would require root to put the file there and then to reboot the > machine. > > Ari As these are EC2 instances, you should be able to use user-data provided to the instance=E2=80=99s configinit (like cloud-init) with firstboot_pkgs_lis= t=3D=E2=80=9Csudo=E2=80=9D similar to Colin=E2=80=99s example here[1], and then run your script(s) usi= ng sudo like you originally expected to. [1]: https://www.daemonology.net/blog/2013-12-09-FreeBSD-EC2-configinit.htm= l Thanks, =E2=80=94Matt > --00000000000073197805c9e3d8f7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANwXMPOGKjuasTDk-9L=9%2Byede2BKW4Nxk=hz%2Bed1D8J%2BfSUSQ>