regarding rsh execution

vankam janardhan <[email protected]> Sun, 11 May 2003 01:32:06 -0700 (PDT)
Newsgroups gmane.linux.redhat.security.server
Message-ID <[email protected]>
--0-208325873-1052641926=:72836
Content-Type: text/plain; charset=us-ascii

Dear sir,
 
i need  'rsh' command to be executed successfully on the remote machine as well as on the local machine also.i am using redhat linux 6.2
 
for example if i give the command 
 
$rsh 172.31.63.32 -l user ls
 
where ip address is the local machine.i got the fallowing error
 
172.31.63.32 : connection refused
trying krb4 rsh.....
172.31.63.32 : connection refused
trying normal rsh(/usr/bin/rsh)
permission denied
 
to overcome the above error i have done following changes in some files.
 in  /etc/hosts.equiv and  /home/usr/.rhosts  i made the following entries.
 
172.31.63.32  user
172.31.63.27  user
 
here 172.31.63.27 is the remote machine.for these files i have given permission rights 600.
in hosts.allow i have added the following line
rsh : ALL : ALLOW
in /etc/nsswitch.conf i made the entry
hosts: files [NOT ! FOUND=continue]dns
 
i commented the securetty line in /etc/pam.d/rlogin
 
#auth required /lib/security/pam_securetty.so
 
simillarly i commented the line in /etc/pam.d/rexec & /etc/pam.d/rsh
 
#auth required /lib/security/pam_nologin.so
 
i renamed the file /etc/securetty to /etc/securetty_old
 
inspite of all these modifications still 'rsh' giving the above error message.i am desperately trying to solve this problem since a few days.please tell me if anybody have idea to solve this problem.
 
i want to execute every command like rsh,rcp,telnet,ftp,exec,rexec etc on remote machine.in order to achive this what else modifications  i need to do?
 
 
thankyou.
 
regards janardhan. 




---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
--0-208325873-1052641926=:72836
Content-Type: text/html; charset=us-ascii

<DIV>
<DIV>Dear sir,<BR>&nbsp;<BR>i need&nbsp; 'rsh' command to be executed successfully on the remote machine as well as on the local machine also.i am using redhat linux 6.2<BR>&nbsp;<BR>for example if i give the command <BR>&nbsp;<BR>$rsh 172.31.63.32 -l user ls<BR>&nbsp;<BR>where ip address is the local machine.i got the fallowing error<BR>&nbsp;<BR>172.31.63.32 : connection refused<BR>trying krb4 rsh.....<BR>172.31.63.32 : connection refused<BR>trying normal rsh(/usr/bin/rsh)<BR>permission denied<BR>&nbsp;<BR>to overcome the above error i have done following changes in some files.<BR>&nbsp;in&nbsp; /etc/hosts.equiv and&nbsp; /home/usr/.rhosts&nbsp; i made the following entries.<BR>&nbsp;<BR>172.31.63.32&nbsp; user<BR>172.31.63.27&nbsp; user<BR>&nbsp;<BR>here 172.31.63.27 is the remote machine.for these files i have given permission rights 600.<BR>in hosts.allow i have added the following line<BR>rsh : ALL : ALLOW<BR>in /etc/nsswitch.conf i made the entry<BR>hosts: files [NOT !
 
! FOUND=continue]dns<BR>&nbsp;<BR>i commented the securetty line in /etc/pam.d/rlogin<BR>&nbsp;<BR>#auth required /lib/security/pam_securetty.so<BR>&nbsp;<BR>simillarly i commented the line in /etc/pam.d/rexec &amp; /etc/pam.d/rsh<BR>&nbsp;<BR>#auth required /lib/security/pam_nologin.so<BR>&nbsp;<BR>i renamed the file /etc/securetty to /etc/securetty_old<BR>&nbsp;<BR>inspite of all these modifications still 'rsh' giving the above error message.i am desperately trying to solve this problem since a few days.please tell me if anybody have idea to solve this problem.<BR>&nbsp;<BR>i want to execute every command like rsh,rcp,telnet,ftp,exec,rexec etc on remote machine.in order to achive this what else modifications&nbsp; i need to do?<BR>&nbsp;<BR>&nbsp;<BR>thankyou.<BR>&nbsp;<BR>regards janardhan.</DIV>
<DIV>&nbsp;</DIV>
<P><BR></P></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com">The New Yahoo! Search</a> - Faster. Easier. Bingo.
--0-208325873-1052641926=:72836--