Operating System - HP-UX
1832089 Members
3022 Online
110037 Solutions
New Discussion

Re: why i could not rlogin from hosta to hostb

 
王曦_1
Occasional Advisor

why i could not rlogin from hosta to hostb

hi erpert:

i have already add a "+" to /etc/hosts.equiv in hostb, and add "hosta" to /home/user01/.rhosts,
but user01 still could not rlogin to hostb from hosta, why ??
and root could rlogin to hostb,

thanks
10 REPLIES 10
Sunil Sharma_1
Honored Contributor

Re: why i could not rlogin from hosta to hostb

Hi,

Please note the following things.
1. root user when using rlogin is not using /etc/hosts.equiv file.
2. As you wrote you put an entry for hosta in .rhosts file un users home directory, you just check the permission of this file this file should be owned by user01.

please check this and update status.

Sunil S
*** Dream as if you'll live forever. Live as if you'll die today ***
Michael Tully
Honored Contributor

Re: why i could not rlogin from hosta to hostb

Hi,

You could be suffering from a DNS resolution problem. Instead of using the hostname in the .rhosts file use the IP address.
Does the local /etc/hosts file contain the IP address and name of the other server.

HTH
Michael
Anyone for a Mutiny ?
Steven E. Protter
Exalted Contributor

Re: why i could not rlogin from hosta to hostb

I can't stand rhosts, but I agree this is probably DNS related.

Try converting the hostnames to IP addresses.

This should be easy to test.

Try some ping commands.

from hosta

ping hostb

from hostb

ping hosta

If there is a DNS problem, the pings should fail.

If its intermittent, your ping times should vary wildly.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
王曦_1
Occasional Advisor

Re: why i could not rlogin from hosta to hostb

i also check the ownership of the .rhost, and i use the ip address instead of hostname, but the problem still there,
my god , what can i do
Michael Tully
Honored Contributor

Re: why i could not rlogin from hosta to hostb

Is either of the systems set up as trusted ?
Anyone for a Mutiny ?
Michael Steele_2
Honored Contributor

Re: why i could not rlogin from hosta to hostb

Can you verify these?

-r-sr-xr-x 1 root bin 53248 Nov 14 2000 /usr/bin/login
-r-sr-xr-x 1 root bin 36864 Nov 14 2000 /usr/bin/rlogin


$HOME/.rhost = ??
/etc/passwd = ??
/etc/hosts = ??
/etc/hosts.equiv = ??

Are using Klogin instead of rlogin? grep in inetd.conf.

Do you get a login prompt? Any error messages? Do you see "...checking disk quotas..."?

Is everyone using standard shells like sh, ksh or csh?

do you have an /etc/cmcluster/cmnodelist file?
Support Fatherhood - Stop Family Law
Frank Slootweg
Honored Contributor

Re: why i could not rlogin from hosta to hostb

> i also check the ownership of the .rhost, and i use the
> ip address instead of hostname, but the problem still there,

Please do not just say that you 'checked' things, but give the details, i.e. ll(1), cat(1), hostname(1), nslookup(1), etc., etc. output.

Note that a .rhosts file *MUST* be owned by the user in whose home directory it is, i.e. /home/user01/.rhosts *MUST* be owned by user user01. If it is owned by somebody else, rlogin (without a password) will *NOT* work.
Gary Yu
Super Advisor

Re: why i could not rlogin from hosta to hostb

you must have the same user account on both servers to use "rlogin hostb", otherwise, you must use rlogin -l user_on_hostb.

rlogin for root doesn't check /etc/hosts.equiv , only /.rhots takes effect.

thanks,
Gary
Gary Yu
Super Advisor

Re: why i could not rlogin from hosta to hostb

Plus, make sure /home/user01/.rhosts has global read access, like r--r--r--, it's very important.

Gary
Tim Sanko
Trusted Contributor

Re: why i could not rlogin from hosta to hostb

1.first ping a from b and b to a.

2. ensure usernames are identical on each host.
User1 and user1 are not identical. (some people are not UNIXfiles.)

3. vi .rhosts and put in
full domain.hostnamea in b
and full domain.hostnameb in a
for two way transparency.

4. chown user .rhosts

5. chmod 444 .rhosts.

6. su - user

7. rsh a /bin/ls /tmp or other populated directory to check

8. rlogin alfred_e_newman

Hope this helps...