Date: Thu, 19 Aug 2021 10:41:37 +0200 From: "Patrick M. Hausen" <hausen@punkt.de> To: ari@ish.com.au Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: Run script as root without sudo Message-ID: <A6147679-30F8-499A-A100-9AA9EC6AA9DA@punkt.de> In-Reply-To: <a8ad228c-2123-1409-3b68-843eb6a79980@ish.com.au> References: <a7d48318-6b21-231e-1042-2d2daad72c50@ish.com.au> <50738b08-8179-46d6-24fe-b2674e4f6c67@FreeBSD.org> <a8ad228c-2123-1409-3b68-843eb6a79980@ish.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Ari, > Am 19.08.2021 um 10:33 schrieb Aristedes Maniatis via freebsd-stable = <freebsd-stable@freebsd.org>: >=20 > The man page is very confusing. Yes, it says -c is class. But it also = has examples like this: > [...] > What is -c supposed to do? Everything after the user name is handed to /bin/sh. So it's executing sh -c command ... That's why it doesn't work without -c in most cases. Kind regards, Patrick --=20 punkt.de GmbH Patrick M. Hausen .infrastructure Kaiserallee 13a 76133 Karlsruhe Tel. +49 721 9109500 https://infrastructure.punkt.de info@punkt.de AG Mannheim 108285 Gesch=C3=A4ftsf=C3=BChrer: J=C3=BCrgen Egeling, Daniel Lienert, Fabian = Stein
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A6147679-30F8-499A-A100-9AA9EC6AA9DA>