1835243 Members
2760 Online
110078 Solutions
New Discussion

REMSH - login incorrect

 
Mohd Syafid Abdullah
Regular Advisor

REMSH - login incorrect

HI Guru,
Im facing a problem when trying to run remsh to connect one hpux to another hpux.

I tried the command " remsh ermisprd -l prdadm -n bdf " and returned " remshd: Account is disabled or expired."

How Im going to troubleshoot this problem..
Please help.

TQ
7 REPLIES 7
Biswajit Tripathy
Honored Contributor

Re: REMSH - login incorrect

1) Check if the account exists in the remote system
and not disabled as claimed by the remsh.
2) Try telnet to the remote system and login as
prdadm.
3) Make sure $HOME/.rhosts file for prdadm in the
remote system does have an entry for the current
system name and login.

Let us know if it still fails after that.

- Biswajit
:-)
Mohd Syafid Abdullah
Regular Advisor

Re: REMSH - login incorrect

1) Check if the account exists in the remote system
and not disabled as claimed by the remsh.
2) Try telnet to the remote system and login as
prdadm.
3) Make sure $HOME/.rhosts file for prdadm in the
remote system does have an entry for the current
system name and login.

Let us know if it still fails after that.

- Biswajit

Hi Guru,
1) The account exists in the remote system.
2) I trying telnet and login as prdadm in remote system. Also don't have problem
3)Yes there is an entry for $HOME/.hosts for prdadm. The entry is ERMISSVR root.

FYI, last 2 months ago this remsh is working.
Please help me.
Indira Aramandla
Honored Contributor

Re: REMSH - login incorrect

Hi Mohd Syafid,

As your .rhosts looks fine can you also check that the file /etc/hosts.equiv are set up correctly.

You must also make sure the host you are comming from is resolvable from the host you are going to. It can do this either through the local /etc/hosts file, NIS or DNS, depending on your /etc/nsswitch.conf file. Otherwise, even if you have .rhosts or /etc/hosts.equiv set up correctly the server cannot be resolved.

Indira A
Never give up, Keep Trying
Biswajit Tripathy
Honored Contributor

Re: REMSH - login incorrect

TQ,
Indira raised a very good point. You could use IP
addresses instead of hostnames in the .rhosts file
and remsh command to avoid host name resolution
being the problem and see if that change anything.

- Biswajit
:-)
Lisa  Mauer
Regular Advisor

Re: REMSH - login incorrect

See Number 2 - that gets me everytime, needs to be the first one listed.
Check this in order:
1) Make sure the "remsh" line is uncommented in /etc/inetd.conf
- if not: uncomment, then enter "/usr/sbin/inetd -c" to reread the config file.

2) Make sure the destination host is in the /etc/hosts file.
*** IMPORTANT: in step 3 you MUST use the first name for the computer's IP address!

Example: 10.48.XXX.XXX servername.domain.com servername

You must use "servername.domain.com" in the .rhosts file in step 3 below.

3) Check the .rhosts file in the user's home directory. Make sure the destination machine
is listed as it is listed in the /etc/hosts file.
Tony Scully_2
Valued Contributor

Re: REMSH - login incorrect

Might be worth trying as another user, set up the .rhosts for that user and test.

Other thing is to make certain that the users $HOME is correct - I have had problems when the home has been changed in /etc/passwd but not on the system itself.

T
You CAN do that on HP
Mohd Syafid Abdullah
Regular Advisor

Re: REMSH - login incorrect

I create back the .rhosts file on both same.
That it, its work.