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>
index | next in thread | previous in thread | raw e-mail
> 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’s configinit (like cloud-init) with firstboot_pkgs_list=“sudo” similar to Colin’s example here[1], and then run your script(s) using sudo like you originally expected to. [1]: https://www.daemonology.net/blog/2013-12-09-FreeBSD-EC2-configinit.html Thanks, —Matt >home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANwXMPOGKjuasTDk-9L=9%2Byede2BKW4Nxk=hz%2Bed1D8J%2BfSUSQ>
