HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

/home/.rhosts

 
avizen9
Esteemed Contributor

/home/.rhosts

hello,
recently i have some issue i am trying to do rsh from windows xp box to hpux 11.x box for particular user.

i had upated in unix /home/avizen/.rhosts file with below line

avizenpc winavizen
avizenpc avizen

now when i try rsh unixhostname -l avizen ls -altr
will give below error.

unixhost remshd: Login incorrect.
rsh cant establish connection.

network side everying ok as i can do this same with some other windows pc.

anybody having any clue for this error,

unixhost remshd: Login incorrect.
rsh cant establish connection.

thanks,
4 REPLIES
Taifur
Respected Contributor

Re: /home/.rhosts

SUDHAKAR_18
Trusted Contributor

Re: /home/.rhosts

I hope the format you need to check in the /home/avizen/.rhosts.

It should be
Venkatesh BL
Honored Contributor

Re: /home/.rhosts

from rsh manpage,
"...For security reasons, any $HOME/.rhosts file must be owned by either the
remote user or the root user, and should have permissions set to 600 (read
and write by owner only).

In addition to the preceding conditions, rsh also allows access to the
remote host if the remote user account does not have a password defined.
However, for security reasons, use of a password on all user accounts is
recommended.
..."

Can you check these on the unix box?
Sajjad Sahir
Honored Contributor

Re: /home/.rhosts

Dear Avizen

When a non-root user attempts to connect to your host,
the /etc/hosts.equiv file is checked before $HOME/.rhosts.

If an entry is found in /etc/hosts.equiv, $HOME/.rhosts is not checked.

When a user attempts to connect to your host as root, the /etc/hosts.equiv
file is not checked. Only the /.rhosts file is checked.

Each $HOME/.rhosts file should be owned by the user of the home directory,
with permissions set to 0600 (-rw-------).

check the entries in /etc/inetd.conf on both machines. are they equal?
Should be like :

login stream tcp nowait root /usr/lbin/rlogind rlogind

thanks and regards

Sajjad sahir