Problem by Installing a PVMCluster (rsh Problem ?)

Bernd_Wollny bernd@wiloyee.shnet.org
Wed, 16 Sep 1998 14:43:05 -0400


On Wed, 16 September 1998 11:49:32 -0400, Alan Grossfield wrote:

> 
> :%pvm
> :pvm> add naomi
> :0 successful
> :                    HOST     DTID
> :                   naomi Can't start pvmd
> :pvm>
> :
> : 
> :If I start pvm with strace I get this message 
> :[pid  xx] execve("/bin/rsh", ["/bin/rsh", "naomi", "$PVM_ROOT/lib/pvmd" 
> :  ...
> :  [/* 51 vars */]) = -1 EPERM (Operation not permitted)
> :
> :The problem are that /bin/rsh are setuid root.
> 
> I don't use PVM, but this sounds like an rhosts problem.  Can you do 
> something simple like  "rsh naomi 'cat hello > t'" and successfully 
> create the file t?  If not, you need to add your current
> machine to your .rhosts on naomi, so naomi will let it run remote 
> commands.  Also, check your /etc/hosts.allow and /etc/hosts.deny files:
> you'll want to make sure you have something like 
> in.rshd:   192.168.
> ( where 192.168. is changed to be some pattern which matches the machines
> in your cluster -- on ours I use local ip numbers) in each hosts.allow 
> file to make sure each machine accepts rsh connections from the others.
> Also, make sure no one commented out the 
> shell   stream  tcp     nowait  root    /usr/sbin/tcpd  in.rshd
> line in /etc/inetd.conf.
> 
> Hope this helps,
> 
> Alan Grossfield

Thank you for the answer but I think that rsh aren't the problem. 
If I start  rsh like: 
%rsh  naomi 'ls >t' 
all are nice! 
Also I can start rsh from the other host. /etc/host.allow are correct, 
I think. 
I think it's a problem of the libc5/glibc that I can't start setuids 
Programs. 
If I exchange /usr/bin/rsh  with a shellscript I have the same Problem. 
%echo "!/bin/sh\n/bin/rsh $@">/usr/bin/rsh 
%chmod u+s /usr/bin/rsh 
Normally execve  will start this script but I have the error too :-( 
   

 
Bernd