Operating System - HP-UX
1838614 Members
4288 Online
110128 Solutions
New Discussion

Re: rlogin authentication

 
Jack Fan
Regular Advisor

rlogin authentication

Dear All,
What is the setup about rlogin authentication between HP-UX and Solaris 8?
I want to rlogin from HP server into Solaris server, but even I put the HP's host name in $HOME/.rhost on Solaris server, but it still need to enter password when I rlogin to Solaris server.

Please help me. Tks,

Jack Fan
3 REPLIES 3
常有慈悲心
Regular Advisor

Re: rlogin authentication

Pls check the permision of /.rhosts. Double check /etc/hosts and /etc/passwd file.
Steven Sim Kok Leong
Honored Contributor

Re: rlogin authentication

Hi,

Check on the Solaris system (destination system) that you are able to resolve (nslookup) the hostname of the HP-UX system (source system) you are trying to rlogin from. Successful name resolution relies on /etc/nsswitch.conf and /etc/resolv.conf (if DNS is relied).

To troubleshoot your .rhosts file, input all possibilities for your hostname for your userid on the Solaris system:

hostname.domain userid
hostname userid
ip_address userid

If that works, try eliminating entry by entry to pinpoint the appropriate one. If that still doesn't work, check that the following services are running from the Solaris system's /etc/inetd.conf:

login
exec
shell

Remember to restart your inetd service on your Solaris to re-read the inetd configuration file ie. inetd -s.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Darrell Allen
Honored Contributor

Re: rlogin authentication

Hi Jack,

As Steven says, you need to have the hostname of the HP specified in the .rhosts file on the Sun. An easy way to determine what name to use is to rlogin (even though it prompts for the password) to the Sun then do "who -u" looking for the tty of your rlogin session. The last field is the hostname. If it's an IP address then the name isn't being resolved.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)