[Beowulf] password-less "rsh"

Reuti reuti at staff.uni-marburg.de
Sat Jul 30 15:29:36 PDT 2005


Hi John,

Am 30.07.2005 um 23:03 schrieb John Hearns:

> On Sat, 2005-07-30 at 15:26 -0400, Brian R Smith wrote:
>
>> On Fedora, the easiest way to do this (if you don't use/need  
>> kerberos)
>> is by
>>
>> rm -f /etc/profile.d/krb*
>>
>>
> Come, come.  Isn't hunting with automatic weapons banned,
> even in the USA?
>
> I'm STILL trying to think of some shell magic to cut
> out /usr/kerberos/bin from the $PATH, no matter where it is located.
>
> The best I can come up with is:
>
>  export PATH=`echo $PATH | cut -d: -f2-`
>
> (In explanation, this only cuts off the kerberos path if it comes
> first.)

what about using a line from the rsh-wrapper of SGE to remove a part  
of a $PATH:

PATH=`echo $PATH|tr : "\012"|grep -v /usr/kerberos/bin| tr "\012" :`
export PATH

Cheers - Reuti



More information about the Beowulf mailing list