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

Problems with rsh

Status
Not open for further replies.

nadim

Technical User
Mar 7, 2001
27
0
0
GB
I'm trying to run remote commands on the rs6000.

The command - rsh <hostname> date appears to be OK on all, but one of the hosts - I'm getting the error

rshd: 0826-826 The host name for your address is not known.

Can anyone help !!!!!!!!.


thanks
 
Check the /etc/hosts file on both target and source - also are both systems pingable from each other ???
 
I can ping the target system by name and IP address, however, I can only ping the source host from the target host through IP.
 
change the /etc/hosts file so that the name can be resolved against an ip - the key to this &quot;talking&quot; between system is the ping command, as long as it works on both systems via ip AND hostname you should be albe to do whatever you like with things like rsh - hope this has helped.
 
I added the hostname into /etc/hosts, but the command still fails.
 
Nadim,

Are you using DNS or NIS on the box that does not work?? i.e. and not on the others??

Ensure in /etc/inetd.conf that the rshd daemon is commented in.

Cheers

PSD
HACMP Specialist
 
PSD

This is the line from /etc/inetd.conf on the target box -

shell stream tcp nowait root /usr/sbin/rshd rshd


and this is on the source box -

shell stream tcp nowait root /usr/sbin/rshd rshd

How can I check if were running DNS or NIS ?.

Cheers

Nadim

 
Nadim,

Well look for the /etc/resolv.conf file.

If it exists then look for /etc/netsvc.conf post them both here if they exist.

Cheers

PSD
HACMP Specialist
 
PSD

No /etc/resolv.conf or /etc/netsvc.conf on source

2 files from target box

/etc/resolv.conf

domain ukit.tandb.co.uk
nameserver 10.1.40.100
nameserver 10.16.40.100

/etc/netsvc.conf

hosts=local,bind





cheers

Nadim
 
Nadim,

On your target box try adding the fully qualified domainname of the source box in the .rhosts file i.e.:

on the target box type:

nslookup <source_box_name>

Then add this entry into the .rhosts file, it should be something like:

hostname.ukit.tandb.co.uk

Are you sure that the correct IP and hostname of the source box has been added to /etc/hosts on the target box, looking at your files it should work as local is used in name resolution before DNS??

Cheers

PSD
HACMP Specialist
 
PSD

I've added the source ip address into /etc/hosts on the target box.

Now when I run the command I get -

0826-813 - permission denied.


Also, anyone know where I can get info on these error codes, and general aix info online.


cheers

Nadim
 
Nadim,

Are you sure that the destination box has the correct host name i.e. source box in the .rhosts file?

Also, the message catalogue i.e. for the seven digit numbers is found in infoexplorer. You may have this on a seperate cd....I never really use it, it does not tell you the specific problem...

By the way what command are you running??? if you just run:

rsh hostname

Then that process calls rlogind not rshd.....if you are check that rlogind is commented into the /etc/inetd.conf

rsh really is easy to set up so either you have overlooked something obvious or the box has had some major security modifications made to it.

PSD
HACMP Specialist

 
PSD

I'm running the following command -

rsh <hostname> date


I'll look into the .rhosts file and see if there is anything obvious I have missed.



cheers

Nadim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top