Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 2021 18:46:55 +1000
From:      Aristedes Maniatis via freebsd-stable <freebsd-stable@freebsd.org>
To:        Andriy Gapon <avg@FreeBSD.org>, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Run script as root without sudo
Message-ID:  <5e990c53-2dbc-48ab-749f-2478d96620ae@ish.com.au>
In-Reply-To: <c4ba9ddf-bf65-be5f-ca80-981b9aa16029@FreeBSD.org>
References:  <a7d48318-6b21-231e-1042-2d2daad72c50@ish.com.au> <50738b08-8179-46d6-24fe-b2674e4f6c67@FreeBSD.org> <a8ad228c-2123-1409-3b68-843eb6a79980@ish.com.au> <c4ba9ddf-bf65-be5f-ca80-981b9aa16029@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------EanryzOwFEHnvyX2gb6DxPJ8
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Oh!!! -c is a csh option....


Someone had to have created that command structure as a practical joke 
on a co-worker back in about 1975... Let's make the login user optional, 
but if you opt not to use it the next argument works completely differently.


Now that I understand it, I see which parts of the man page I didn't 
read clearly. And then on top of that the linux su command actually has 
a -c option, so of course all those docs out there are leading in the 
wrong direction.


Thanks for your help.

Ari



On 19/8/21 6:35pm, Andriy Gapon wrote:
>> What is -c supposed to do?
> I thought that I answered that question, even before you asked, with the
> second quote from the manual page.
>

--------------EanryzOwFEHnvyX2gb6DxPJ8--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5e990c53-2dbc-48ab-749f-2478d96620ae>