From nobody Thu Aug 19 06:34:43 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 65F5817754F0 for ; Thu, 19 Aug 2021 06:34:58 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gqw422GRLz3N8F for ; Thu, 19 Aug 2021 06:34:58 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-ot1-x32a.google.com with SMTP id c19-20020a9d6153000000b0051829acbfc7so7405452otk.9 for ; Wed, 18 Aug 2021 23:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=53TJV/In+NXoxLAIaWa8E352CmK896lGH6cXuD1TQ8Q=; b=x870XN9zObs1Fg5tkzN9S/fB+ZfZ0oPiG/VE6/mWt3VE2T8mKBjnpx0tVCF1oLJpeO 7/TK3VpyUqvljh2uuGFROZalb2Z1qMGmjVJ/elzU9mTfUOQ1BWVbmgEX+MBvIAD4LWKz ylkrpJCkDT3x8hifa0bsDh3vZM6bHHZNMk+X4hpHk48WdFGdbPuchfFBBkWMOzM9on0v miGaTkWaGJpwfvIBsrfWpfsTq8/LSByv8TzGH1dtKO49xKId2Ac8FDonhQO1aDZUnAXj z6jMaioBScCKfBMHNF7f67S3vsf2lzvTy8z30JK/Byh63kvvUFI6q35Xr5+5aWWc3nzQ DqYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=53TJV/In+NXoxLAIaWa8E352CmK896lGH6cXuD1TQ8Q=; b=sQBCUTIhbSBMYW1hThj3bd+9MMCC+YpOIXUkObn+uwzH9AIZ7hBXaITFv8sPuTT35V qnIzWHqXbi31tb22u/qAFtHS+SMGimM0ilt8Okduufwj2T2dIEotLx7LDyejdsAWHjll cK+AQiY/NMv0eppwiYFh6hPYkyJ3uchKIOV0cYUCPvosFe2UGIkdGpNXx+ZWINSfcZiZ L0duUmk8stcF8pRj8XcFyzILnBv7ykFG3lSajD59PhnMVFupgLbjgpgFTsJqNnJNJ9Dq 0VIKNRsDIxzvUgp2UqHFfxTssFHvWoSv4dQ1iEHT5pXJoNmKi8alFt3YD1/ZNbU0UNEO xf4g== X-Gm-Message-State: AOAM530sUgIpW08GcGaEq3PCkhxMbtXZ9oAIIKPz995n8TFPCGa3bC+E E6oiosvh1YeMEBfH6mDsoqGZuSraz7FW6VdWZjrMf2brAjw= X-Google-Smtp-Source: ABdhPJxo4KwYBQ3B2MZeLe7AJN4Zy20sbhiH0U5NqYaEE75cqhufQccdBgIgzkzAi5S9GoZ/rLyVkqYqTWQqZ4o/q6U= X-Received: by 2002:a05:6830:314b:: with SMTP id c11mr10923519ots.169.1629354897647; Wed, 18 Aug 2021 23:34:57 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Chen Date: Thu, 19 Aug 2021 18:34:43 +1200 Message-ID: Subject: Re: Run script as root without sudo To: Aristedes Maniatis Cc: freebsd-stable Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Gqw422GRLz3N8F X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, 19 Aug 2021 at 18:25, Aristedes Maniatis wrote: > > That would require root to put the file there and then to reboot the > machine. In which case, wouldn't it be simpler to just start a new instance, install your packages by hand, and then take a snapshot of the volume and convert it to a custom AMI instead? That way all new instances from your custom AMI will be preconfigured with the required packages. Cheers. -- Jonathan Chen