[HPADM] RE: Difficult time with remsh/rcp/rlogin-SUMMARY

From: Anil Rajapure (anil_unix1975@yahoo.com)
Date: Tue Sep 03 2002 - 09:36:04 EDT


Thanks to BOB and David R Antoch
BOB's reply-particularly checking who -R helped me.
on hosta who -R was giving IP address, instead of name.
So added the entry for this in hosts file and problem solved.
Thanks again.
I have been working on this for quite a log time.
This mailing list rocks.
Regards,
 Bob Vance wrote:
First of all, I'd give "toor" a different home directory than "/" (I would use "/.toor").That way, "toor" is completely out of the way of "root", including the shell history file, and it's never good to have "/" as a homedir, anyway -- it' just messy (I even change "root"). Owner of .rhosts should be 0:3 (root:sys). I use 400 for perms, but 644 should be OK. > 3 hostname lookup with ip address and hostname is perfectly fine. This is usually the problem, even though you say it is correct. The usual trick is that a reverse lookup is done on the incoming IP address to get a name to check in .rhosts. After doing a remote login (either 'telnet' or 'rlogin'), do a who -R. If your name resolution is set correctly (either /etc/hosts or DNS), you should see your remote host with a *name* as opposed to a IP address. Use this *exact* name in .rhosts ( i.e., if it shows a fully qualified name, use it). If there is only an IP address, then your reverse lookup is not set up properly!
. Otherwise, it might be patches.
-------------------------------------------------------------------------------------
Tks <mailto:BVance@sbm.com>
BobVance <mailto:BobVance@alumni.caltech.edu>
Sr. Technical Consultant Vox 770-623-3430
Arrow Electronics, Inc. or 770-877-3476
Enterprise Computing Solutions Fax 770-623-3429
SBM Division
11455 Lakefield Dr.
Duluth, GA 30097-1511
===========================================

 
-----Original Message-----
From: hpux-admin-owner@DutchWorks.nl [mailto:hpux-admin-owner@DutchWorks.nl]On Behalf Of Anil Rajapure
Sent: Tuesday, September 03, 2002 8:17 AM
To: hpux-admin@DutchWorks.nl
Subject: [HPADM] Difficult time with remsh/rcp/rlogin

I am trying rcp/rlogin/remsh from one HP box to other. But I am getting remshd: login incorrect message. The user name is toor with UID 0 & GID 0
I have set up the following.
1 .rhosts(in home directory of toor) of each server. Home dir is / for toor user on both servers.
.rhosts files are as follows
on host A it is ---> hostb toor
on host B it is ----> hosta toor
permissions on .rhosts files are 644
2 /etc/indetd.conf is as follows on both servers.
shell stream tcp nowait root /usr/lbin/remshd remshd
# The standard remshd and rlogind do not include the Kerberized
kshell stream tcp nowait root /usr/lbin/remshd remshd -K
3 hostname lookup with ip address and hostname is perfectly fine.
4 no restictions have been put in /var/adm/inetd.sec
5 /etc/hosts.equiv contains + on both systems.(Though this is not required)
6 hosta running on 11.11 and hostb running on 11.00
7 I am not using trusted passwords.
8 pwck,grpck returns no error.
After all this if I do remsh it asks for password. rcp gives remshd:login incorrect message.
What else I can check?
I am in a loop now
Thanks in advance
Regards,

---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:19 EDT