[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rsh as root



At Fri, 1 Nov 2002 21:02:13 +0100,
Pavel Jurus wrote:

> I am playing with small cluster, the number of nodes is increasing however 
> and I just started to solve task of logging automatically to each node (or
> selected list) to reboot or shutdown machine. To do this in script I need 
> to use rsh as root without password, but I haven't figured out how to do
> it in Debian the right way. /etc/hosts.equiv doesn't help and I suspect
> it is disabled by pam configuration because it is of course huge security 
> hole in normal settings.
> 
> Could you please tell me "your way" of rebooting via script or give me some
> hints how to configure pam (it is in /etc/pam.d/rsh is suppose but I'm
> newbie to pam)?

I have heard that adding

auth    sufficient      pam_rootok.so

to  /etc/pam.d/rsh should be enough, but I had experiences that 
I needed to add
/root/.rhosts.



I'm using "dsh" extensively for cluster maintenance, it is a Debian
package.


For systems which you cannot really log in as root with rsh, 
to initially set up, you could use 

dsh -ica 


to login to all hosts interactively :P





Reply to: