Re: Run script as root without sudo

From: Patrick M. Hausen <>
Date: Thu, 19 Aug 2021 08:41:37 UTC
Hi Ari,

> Am 19.08.2021 um 10:33 schrieb Aristedes Maniatis via freebsd-stable <>:
> 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,
-- GmbH
Patrick M. Hausen

Kaiserallee 13a
76133 Karlsruhe

Tel. +49 721 9109500

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein