Operating System - HP-UX
1761375 Members
3968 Online
108901 Solutions
New Discussion юеВ

As root, can't rlogin from particular server without password

 
SOLVED
Go to solution
Jay Core
Frequent Advisor

As root, can't rlogin from particular server without password

Hello,

strange problem. As root, I want to be able to rlogin from host7 and host8 to host9, without supplying a password. While I am able to do this from host8 to host9 with no problem, whenever I rlog from host7 to host9, the system asks for a password. inetd.sec is not setup on any of the servers, and here is the .rhosts file on host9:

#more .rhosts
host7
host7.long.name.net
host8
host8.long.name.net

I do not want to add +root to .rhosts, because I only want to be able to rlogin as root without a password from these 2 specified servers.

What am I missing??

Thanks,
Joe
24 REPLIES 24
Chris Watkins_1
Respected Contributor

Re: As root, can't rlogin from particular server without password

Make sure host7's entry is correct in host9's /etc/hosts file,
or that it gets the correct info from DNS if you're using DNS.
Not without 2 backups and an Ignite image!
Uday_S_Ankolekar
Honored Contributor

Re: As root, can't rlogin from particular server without password

Try with ipaddress instead of ipaddress
Also put root infront of ipaddress or hostname

host7.long.name.net root
xx.xx.xx.xx root

-USA..
Good Luck..
Vijaya Kumar_3
Respected Contributor

Re: As root, can't rlogin from particular server without password

Some more thoughts for troubleshooting:

Check host7 is able to connect to any other host using rlogin? Can you check the permission for .rhosts file? Any DNS issues with host7?

One more link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=64497

-Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Jay Core
Frequent Advisor

Re: As root, can't rlogin from particular server without password

Chris - thanks - good thought - the IP was correct in /etc/hosts

Uday - thanks - I tried with short name, long name, and IP, and put root after them, and it didn't work.

I'll keep looking.

Thanks,
Joe
Chris Watkins_1
Respected Contributor

Re: As root, can't rlogin from particular server without password

You might try adding a hosts.equiv file, but that's masking the problem.

In the same format as .rhosts, ie...

cat /etc/hosts.equiv

hostname root
hostname2 root
etc... root
Not without 2 backups and an Ignite image!
Jay Core
Frequent Advisor

Re: As root, can't rlogin from particular server without password

Vijay,

thanks. host7 can connect to any other host with no problem. .rhosts is set at 600, on host9, and DNS is fine, both forward and reverse.

Joe
Jay Core
Frequent Advisor

Re: As root, can't rlogin from particular server without password

Chris,

thanks - like you intimated, I do want to get to the "root" of the problem - so I'll use your solution as a last resort.

No offense
Thanks,
Joe
Vijaya Kumar_3
Respected Contributor

Re: As root, can't rlogin from particular server without password


One more thought:

Is Host7 running MC/Serviceguard?

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=138299

-Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Jay Core
Frequent Advisor

Re: As root, can't rlogin from particular server without password

Vijay - no ServiceGuard

thanks,
Joe