regarding rsh command execution
vankam janardhan <[email protected]> Sat, 10 May 2003 22:28:50 -0700 (PDT)
| Newsgroups | gmane.linux.redhat.release.guinness |
|---|---|
| Message-ID | <[email protected]> |
--0-31863347-1052630930=:517 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!? Yahoo! News - Today's headlines --0-31863347-1052630930=:517 Content-Type: text/html; charset=us-ascii <DIV>Dear sir,<BR> <BR>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<BR> <BR>for example if i give the command <BR> <BR>$rsh 172.31.63.32 -l user ls<BR> <BR>where ip address is the local machine.i got the fallowing error<BR> <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> <BR>to overcome the above error i have done following changes in some files.<BR> in /etc/hosts.equiv and /home/usr/.rhosts i made the following entries.<BR> <BR>172.31.63.32 user<BR>172.31.63.27 user<BR> <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> <BR>i commented the securetty line in /etc/pam.d/rlogin<BR> <BR>#auth required /lib/security/pam_securetty.so<BR> <BR>simillarly i commented the line in /etc/pam.d/rexec & /etc/pam.d/rsh<BR> <BR>#auth required /lib/security/pam_nologin.so<BR> <BR>i renamed the file /etc/securetty to /etc/securetty_old<BR> <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> <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 i need to do?<BR> <BR> <BR>thankyou.<BR> <BR>regards janardhan.</DIV> <DIV> </DIV><p><br><hr size=1>Do you Yahoo!?<br> <b><a href="http://news.yahoo.com/">Yahoo! News</a></b> - Today's headlines --0-31863347-1052630930=:517--