HIGHLY recommend setting up DSA keys. Rsync is powerful, but it doesn't
come out well in a match against sudo.
Dsa keys for newbies:
http://mandrivausers.org/lofiversion/index.php/t27929.html
Then you can run rsync as follows (with whatever switches make you happy):
sudo /usr/bin/rsync -a -S -vv --update --delete $source $TARGET/$source
-s
On 11/20/07 10:21 AM, "Andrew Janke" <[log in to unmask]> wrote:
>> when I try and "rsync" from a slave node the /usr/sge directory I run into
>> the problem that it is asking for the password for root@qmaster after I type
>> in the rsync command
>>
>> since ubuntu distributions by defualt have no "root" password is there a
>> simple way around this, or just assign a default "root" password
>
> You are right, this will be a problem... There are apparently
> workarounds like this:
>
> rsync -av --rsync-path='sudo rsync' ....
>
> But I have had inconsistent success with this in the past. The most
> annoying being
> that in this case depending on your TTY setup your password will be
> echoed for the sudo command. :(
>
>> ALSO--- for the "vi" challenged among us-- it may be useful to link to a
>> tutorial on how to actually modify the qconf file
>
> True, qconf reads the $EDITOR env variable so you can do something
> like this before running all the qconf things
>
> $ export $EDITOR=nedit
>
> I have added this to the wiki page.
>
> Thanks
>
>
> a
--
Sheyna E. Gifford
Research Specialist
Magnetic Resonance Imaging Research Facility
http://www.brainscience.brown.edu/MRF/
Brown University
Box GL-N 125
Office phone: 401-863-6513
Fax: 401-863-1074
|