Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rsh to Linux from WinNT and Nextstep 1

Status
Not open for further replies.
Jan 20, 1999
99
ES
I need to rsh to Linux from WinNT and Nextstep but get permission denied in both cases. Anyone know how to do this? Thanks in advance,<br>
John Connolly<br>

 
Assuming you're trying &quot;rsh linuxbox some_command&quot;...<br>
<br>
First, make sure the WinNT and NextStep hosts have entries in /etc/hosts.<br>
<br>
Next, go to the home directory of the account you're trying to log in as. eg, if you're logged in as &quot;john&quot; on the Next box, go to &quot;john&quot;'s home directory on the Linux box. Create a file called &quot;.rhosts&quot; in the directory, and add the line &quot;nextstepboxname john&quot;.<br>
<br>
Now go to the Next box and try the rsh again.<br>
<br>
If you don't have a &quot;john&quot; account on the Linux box, no probs. Go to the home directory of a -normal- user account - not a system user or root. For the example, we'll say &quot;fred&quot;. In &quot;fred&quot;'s home directory, create the same &quot;.rhosts&quot; file as before. eg &quot;nextstepboxname john&quot;.<br>
<br>
On the Next box, try and run rsh as &quot;rsh linuxboxname -l fred remote_command_name&quot;. In other words, run the command remotely on &quot;linuxboxname&quot; as the user &quot;fred&quot;. The .rhosts file that you created in &quot;fred&quot;'s home directory says &quot;let 'john' on 'nextstepboxname' run commands using my account&quot;.<br>
<br>
Take a look at the 'rsh' man page for more details. For example, how to do this on a system wide basis.<br>
<br>
HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top