1835279 Members
2441 Online
110078 Solutions
New Discussion

Re: remsh issue

 
SOLVED
Go to solution
Andres_13
Respected Contributor

remsh issue

Ok, i have 3 vPars on a integrity superdome running HP-UX 11.23.

serv1 -> vPar0
serv2 -> vPar1
serv3 -> vPar2

serv1's .rhosts file is as foolow:
serv2
serv3

When i try remsh from serv2 to serv1 it alwas ask for a password; when i try remsh from serv3 to serv1 all Ok.

Can any of you help me?
Thanks & regards.
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: remsh issue

Shalom,

Check the permissions on the .rhosts file and the contents and ownerhip of said file. Also see that /etc/hosts.equiv are consistent.

Consider using openssh/HP Secure shell to make the transaction secure.

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
Peter Godron
Honored Contributor
Solution

Re: remsh issue

As a follow-up to Steven's posting, the permisssions on .rhosts should be rw------- (600) and the file should be owner by the user.

No points please
Andres_13
Respected Contributor

Re: remsh issue

Hi Steve, ser1's .rhosts permissions:

-rw-r--r-- 1 root sys 18 Aug 3 09:44 .rhosts

The /etc/hosts.equiv does not exist in serv1.

Thanks & regards
Andres_13
Respected Contributor

Re: remsh issue

Steve/Peter,

I'd set to 600 the .rhosts permissions, still ask for password from serv2 and still ok from serv3.

Thanks & Regards
Josiah Henline
Valued Contributor

Re: remsh issue

Are your UIDs the same on all of the systems?
If at first you don't succeed, read the man page.
Andres_13
Respected Contributor

Re: remsh issue

Hi Josiah,

The user id is the same on all servers, i´m tryiing with root so th UID is 0 in all three.

Any clues?

Thanks & Regards.
Mel Burslan
Honored Contributor

Re: remsh issue

did you try modifying the serv1's .rhosts file as follows :

serv2 root
serv3 root

it is a simple change to test. I am not sure what the case is in your situation but somehow, serv1 is not getting your effective uid from serv2 whereas it can get it from the serv3 connection.

on serv2, check to see if remsh has been aliased to a different command which is circumventing passing the right id, or if there is a wrapper script named remsh in your search path.

________________________________
UNIX because I majored in cryptology...
Andres_13
Respected Contributor

Re: remsh issue

Thank you all guys, but still ask for user's password, thats really extrange because this is the only one.

I have /etc/securetty; other hosts Ok, serv2 ask for a password.... i don´t know why....

I've been looking for a clue but nothing.

(Really desperate!)

Regards.
Mel Burslan
Honored Contributor

Re: remsh issue

an idea

when you are trying to remsh from serv2 to serv1,, do a "tail -f /var/adm/syslog/syslog.log" on serv1 and see what messages you are getting there.

make sure your inetd is running with -l options prior to that. If not, kill inetd and start with -l option.
________________________________
UNIX because I majored in cryptology...
Andres_13
Respected Contributor

Re: remsh issue

...