I want to run a command

tar czf - / | ssh [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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"
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to