[Dirvish] Re: ssh as root going away

Ken Dyke kdyke at keycomputerconsultants.com
Thu Jan 11 17:25:45 PST 2007

On Thu, Jan 11, 2007 at 02:01:30PM -0700, Ken Dyke (kdyke at keycomputerconsultants.com) wrote:

Thank you, Barnd for your reply, it got me digging harder on the

Because of this
> PATH=~/bin:$PATH

This merely tries to execute itself as root.

> #!/bin/bash
> sudo rsync $@

sudo /usr/bin/rsync "$@"

does execute rsync as root according to the sudo log entry.  But I still
get only a partial transfer.  I suspect that some non-root shell
environment values are leaking through to rsync which is causing the
failure.  Basically the difference between:


su -

While it may be possible to get the latter behavior from sudo, the sudo
man pages are a miserable affair.
Chief Gadgeteer
Elegant Innovations

More information about the Dirvish mailing list