rsh as root without password
Hi all, I am working with a clustered software that needs to rsh as root into every nodes of cluster (before advising on ssh or something else, I must say that all machines are in an isolated network and there is no security risk at all). I added machine-name root string in .rhosts file in root's home of all nodes or even + machine-name root in /etc/hosts.equiv file , but it does not works. also I remarked this line in /etc/pam.d/rsh : auth requiredpam_nologin.so but the problem is still exists. Using rsh-server and rsh-client packages on sarge-31r1. TIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: rsh as root without password
Sadegh Ismael Nattaj wrote: Hi all, I am working with a clustered software that needs to rsh as root into every nodes of cluster (before advising on ssh or something else, I must say that all machines are in an isolated network and there is no security risk at all). I added machine-name root string in .rhosts file in root's home of all nodes or even + machine-name root in /etc/hosts.equiv file , but it does not works. also I remarked this line in /etc/pam.d/rsh : auth requiredpam_nologin.so but the problem is still exists. Using rsh-server and rsh-client packages on sarge-31r1. Regardless of security, this is much easier to implement using ssh and public keys without a passphrase (or with something like keychain if you want a passphrase on your key). -Roberto -- Roberto C. Sanchez http://familiasanchez.net/~roberto signature.asc Description: OpenPGP digital signature
rsh when root
Hi there ! I would like to do a rsh from one machine to another being root. Debian said Permission denied Yes it is dangerous but i would like to do it. thanks of course .rhosts is positionned machine1 root Xavier __ [EMAIL PROTECTED]
Re: rsh when root
Hello, Edit /etc/inetd.conf, look for the line that invoque rshd and modify it as follows: shell stream tcp nowait root/usr/sbin/tcpd in.rshd -hlL ^^ This disables the use of ~/.rhosts *except for root* (-l) and allows root's rsh (-h). See man 8 in.rshd and man 3 ruserok. Hope this helps. Cheers. Bye. Ph. A. -- //\\ \\// ///\\\ SCITEX /*-*/ /* Scitex Europe, S.A. | Philippe Andersson */ /* Dreve Richelle, 161, E-F,| PC Network Specialist */ /* 1410 WATERLOO| [EMAIL PROTECTED]*/ /* BELGIUM | +32-2-352.25.93 Fax: +32-2-352.25.84 */ /*-*/
Re: rsh when root
As an afterthought: don't forget to use the FQDN in your .rhosts (it didn't work without it in my setup) Ph. A. Philippe Andersson wrote: Hello, Edit /etc/inetd.conf, look for the line that invoque rshd and modify it as follows: shell stream tcp nowait root/usr/sbin/tcpd in.rshd -hlL ^^ This disables the use of ~/.rhosts *except for root* (-l) and allows root's rsh (-h). See man 8 in.rshd and man 3 ruserok. Hope this helps. Cheers. Bye. Ph. A. -- //\\ \\// ///\\\ SCITEX /*-*/ /* Scitex Europe, S.A. | Philippe Andersson */ /* Dreve Richelle, 161, E-F,| PC Network Specialist */ /* 1410 WATERLOO| [EMAIL PROTECTED]*/ /* BELGIUM | +32-2-352.25.93 Fax: +32-2-352.25.84 */ /*-*/ -- //\\ \\// ///\\\ SCITEX /*-*/ /* Scitex Europe, S.A. | Philippe Andersson */ /* Dreve Richelle, 161, E-F,| PC Network Specialist */ /* 1410 WATERLOO| [EMAIL PROTECTED]*/ /* BELGIUM | +32-2-352.25.93 Fax: +32-2-352.25.84 */ /*-*/
Can't use rsh as root
I'm trying to use rsync from one Debian system to another. It works fine for transferring files from my user directory one one system to my user directory on the other, while I'm logged in to my user account. When I su to root and try, I get permission denied. auth.log shows Mar 19 13:02:19 frankie rshd[779]: rsh denied to [EMAIL PROTECTED] as root: cmd='rsync --server -vunlWogDtpr --delete --force . /backupa1'; Permission denied. /root/.rhosts on each system names the other system. So does /etc/hosts.equiv I'm copying from a hamm system to a slink system.
rsh from root: must use rshd -h
I found the answer to my earlier question about why I could use rsh from my own account but not from root even though .rhosts and hosts.equiv were set. In inetd.conf it's necessary to add the -h option to rshd. I don't know how big a security risk that is, or if there's a good reason why -h isn't included by default, but it works now.
rsh with root?
I have a linux cluster (a beowulf), and I want to be able to use rsh with root to the nodes. I found the CONSOLE line in /etc/login.defs and commented it out. Now root is allowed to rsh in to the machines, but I can't, for the life of me, figure out how to allow root to rsh in without a passwd. I added the machines in the cluster into the /etc/hosts.equiv file, and now everyonw but root can rsh between nodes without a password. What am I missing for root? (I need this esp. for rdist and such.)
?rsh by root?
I am trying to use rdist to distribute system files from one Debian host to nine Debian desktop hosts. How/Where does one set up in.rshd so that root can rsh in as rdist attempts? In /etc/inetd.conf, as below? Or what? # /etc/inetd.conf: see inetd(8) for further informations. #:BSD: Shell, login, exec and talk are BSD protocols. #shell stream tcp nowait root/usr/sbin/tcpd /usr/sbin/in.rshd shell stream tcp nowait root/usr/sbin/tcpd /usr/sbin/in.rshd -h rob [EMAIL PROTECTED]