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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot run UNIX command on remote host 1

Status
Not open for further replies.

AlbertAguirre

Programmer
Nov 21, 2001
273
US
I am using rsh and i have my .rhosts file set up as well as the rsh daemon running on both systems.

I still get 0826-813 Permission is denied

Why?
 
Ah, rsh... Our promiscuous, red-headed stepchild. Not really recommended, but still popular.

Are you tring to rsh over as root? This is disabled by default. Use the chuser or "smit user" to change this.

Also, are you sure that you setup the .rhosts correctly? When you log in using telnet or secure shell from one system to the other, how is the remote server resolving your IP? Type in "who" to check this out.

Where are you defining your hostnames? DNS, /etc/hosts file, both? You might want to make sure your /etc/resolv.conf file and netsvc.conf file look okay.

Is rsh defined in /etc/inetd.conf and is inetd running?

Has /etc/services been modified? There should be a "shell" entry.

Typically, rsh issues are because of hostname resolution and not /etc/inetd.conf or /etc/services, but I thought I'd mention them anyways.
 
Thanx for the quick answer.

Heres my setup:
1) No I am not doing it as root or using sudo
2) I have my .rhosts file set up with just hostname entry on both systems pointing to each other
3) I can rlogin from either without a problem
4) hostnames defines in both DNS and hosts
5) resolv.conf looks ok
6) i dont know what to look for in netsvc.conf
7) /etc/services has not been modified, there is a shell entry

Wierd thing is that it actually worked for a moment then stopped. I think after I modified the hosts file because the remote server was missing. Did the same on the remote server host file.
Could there be a dns conflict?

 
From servera, log into serverb. Type in "who am i". It should look something like this:
spamly pts/2930 Jan 6 13:22 (potatoserver)

In this case, the word "potatoserver" should be in your .rhosts file. Depending on how serverb is resolving servera's hostname, it may appear different.
 
I found the problem.

I had both servera and serverb in both hosts files.

Now servera has serverb defined in the hosts file and
serverb has servera defined.

Before servera had servera in its own hosts file and that caused the problem.

I am not a networking pro at all. Is this set up correct?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top