1753867 Members
7412 Online
108809 Solutions
New Discussion юеВ

remsh login incorrect

 
Ernesto Rincon
Frequent Advisor

remsh login incorrect

Hi:
I have a HP-UX 11i server (COMDIS) with two users: siapcom and scadmin. The user siapcom executes a remsh into the same server as the another user:
siapcom>$ remsh COMDIS -l scadmin -n command
login incorrect
siapcom and scadmin have the same home directory and the .rhosts have the next entries:
COMDIS siapcom
COMDIS scadmin
Someone can help me??
Regards!!
7 REPLIES 7
Fred Ruffet
Honored Contributor

Re: remsh login incorrect

Seems OK, but what are the rights on the .rhosts file and the home directory. File must have read permissions for the 2 users (so probably for the group they must have common).

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ernesto Rincon
Frequent Advisor

Re: remsh login incorrect

Hi Fred:

The .rhosts file has 660 permissions and both users belongs to the same group.

Thanks
Pete Randall
Outstanding Contributor

Re: remsh login incorrect

What are you trying to accomplish? It seems to me that you're trying to misuse remsh to do something as a different user without supplying a password and I'm not sure that's possible.

What happens if you rlogin to the same server and then try to login as scadmin?


Pete

Pete
RAC_1
Honored Contributor

Re: remsh login incorrect

What is there in .rhosts file?? are the server names/ip_Adresess correct?? The method that I use to resolve similar issues is like this.

Login(telnet) as a user(that you for r commands) and after login do who -um

The last column that you see(ip_address/host_name) should be in .rhosts file and user name.

Anil
There is no substitute to HARDWORK
Ernesto Rincon
Frequent Advisor

Re: remsh login incorrect

It├В┬┤s very rare....when I login as siapcom and execute:
$ remsh COMDIS -l siapcom -n bdf
it├В┬┤s works OK.
But, when I change the user (I still login as siapcom):
$ remsh COMDIS -l scadmin -n bdf
remshd: login incorrect

The reason of this remsh is: scadmin is a user that have permissions to drop Informix tables and siapcom doesn├В┬┤t have this permissions and use the remsh to drop the tables as scadmin.

Gary L. Paveza, Jr.
Trusted Contributor

Re: remsh login incorrect

According to man pages for rhosts, the .rhosts file should have read/write permisisons for owner only. Try changing the permissions to 600.
Ernesto Rincon
Frequent Advisor

Re: remsh login incorrect

I found a temporary solution....like I said, both users have the same home directory, so I change the owner of .rhosts file to scadmin and I execute the command as siapcom user:
$ remsh COMDIS -l scadmin -n bdf
IT WORKS!!!...and if I change the owner of .rhosts to siapcom the command works in viceversa:
$ remsh COMDIS -l siapcom -n bdf (as scadmin user)
It├В┬┤s a rare behavior but, by the moment, the user is happy.

Thanks everybody for your help!!!

Regards