Operating System - HP-UX
1832857 Members
3231 Online
110047 Solutions
New Discussion

Re: remsh login incorrect

 
cl_5
Frequent Advisor

remsh login incorrect

Hi!

remsh is a never ending story!

I??ve got a machine with HP-UX 11 installed on.
I put in the command:
# remsh $(hostname) id
And get remshd: login incorrect.
I??ve got a NIS environment and the group cmsunix contains all unix-hosts in the network. So I put +@cmsunix in .rhosts and hosts.equiv. I also checked the inetd.conf and it seems to be OK.

Any ideas?

Thanks in advance
Carsten
8 REPLIES 8
Donny Jekels
Respected Contributor

Re: remsh login incorrect

what have you done on the remote host?
"Vision, is the art of seeing the invisible"
John Dvorchak
Honored Contributor

Re: remsh login incorrect

On the machine that you are trying to run the remsh command, do you have a .rhosts file for that "id" and it includes the machine that you are trying to remsh from?

The target machine doesn't like something about your user id or the machine that you are issueing the remsh command from. When I have these types of permissions problems I telnet to the target machine and do a who -u to make sure that the target .rhosts file's machine and or ID is the same as the output from who -u.

Good luck
If it has wheels or a skirt, you can't afford it.
Dario_1
Trusted Contributor
Frederic Sevestre
Honored Contributor

Re: remsh login incorrect

Hi,

Check permissions on .rhosts file, it sould be 640.
Check name resolution using nslookup from both servers.

Regards,
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
cl_5
Frequent Advisor

Re: remsh login incorrect

$(hostname) is the local machine.
cl_5
Frequent Advisor

Re: remsh login incorrect

If I put the hostname into .rhosts, remsh runs without any error. But this is not what I want. I??ve got a NIS Map called netgroup which should do this.
Steven E. Protter
Exalted Contributor

Re: remsh login incorrect

I don't think .rhosts is compatible with what you want to do.

hostname, ipaddress or nothing.

Its a networking tool, and an insecure one at that.

I'd take out the + sign. Its a security hole big enough to run an A1 Abrams tank through.

Also check both machines for /etc/hosts.equiv /var/adm/inetd.sec entries that might be interfereing with your networking.

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
Shannon Petry
Honored Contributor

Re: remsh login incorrect

The netgroup map has absolutely nothing to do with a .rhosts nor an /etc/hosts.equiv.

There are certain services that can use a netgroup file, I.E. NFS, but definately not remsh(rsh on any other Unix).


To allow users a global login to any maching, they need to have listings in /etc/hosts.equiv. root account does not use /etc/hosts.equiv, and will require $HOME/.rhosts.

Now, interestingly I dont know if your example will work anyway. Normally you need to be the authenticated user to use a remote shell with no password, meaning if you type "remsh host someone" and the someone is not who your logged in as, then you will have further issues.

Regards,
Shannon
Microsoft. When do you want a virus today?