Date: Sun, 30 Mar 2008 05:52:17 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: lveax <lveax.m@gmail.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: how to write the standard output to an unwritable with sudo? Message-ID: <8763v453fi.fsf@kobe.laptop> In-Reply-To: <576dcbc20803291913p222d5638rf685bf97470f787b@mail.gmail.com> (lveax's message of "Sun, 30 Mar 2008 10:13:02 %2B0800") References: <576dcbc20803291913p222d5638rf685bf97470f787b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 30 Mar 2008 10:13:02 +0800, lveax <lveax.m@gmail.com> wrote: > $ whoami > v > > $ ll a > -rw-r--r-- 1 root v 0 Mar 30 10:02 a > > $ sudo cat > a > a: Permission denied. You have to redirect output 'within' sudo, so try using: sudo sh -c 'cat > unwritable'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8763v453fi.fsf>