Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 2004 15:34:49 -0700
From:      David Bear <David.Bear@asu.edu>
To:        freebsd-questions@freebsd.org
Subject:   sudo syntax
Message-ID:  <20040826223449.GF6896@asu.edu>

next in thread | raw e-mail | index | archive | help
I want to run a command

tar czf - / | ssh id@somehost dd of=tarball.tgz

I need to run tar as root.  However, I need to run ssh as user 'id'.

I tried 

sudo tar czf - / | ssh id@somehost dd of=tar.tgz

but am unsure if ssh was launched as 'id' or as root.

Any way to be certain that sudo is doing what I want?

-- 
David Bear
phone: 	480-965-8257
fax: 	480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 "Beware the IP portfolio, everyone will be suspect of trespassing"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040826223449.GF6896>