1834605 Members
4547 Online
110069 Solutions
New Discussion

remsh/rsh prblm

 
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi

I just looked at your profile you may find the guru's more likely to help if you assign points for contributed suggestion or even just acknowledge the suggestions with N/A.

John.
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi

I think the problem is with the hpux server but I have just revisited the .profile on the solaris server.

when I issue command

remsh hpux . .profile 2>&- \; uptime

I get nothing back , just the prompt

I have copied /etc/skel/.profile to /

now when I issue the command I get

value of TERM is set to "".
WARNING YOU ARE SUPERUSER !!

10:37AM up 5:28, 4 USERS ...

TRY THIS AND SEE IF YOU GET ANY CONFLICT WITH TERM

cheers
John.
dhanish
Regular Advisor

Re: remsh/rsh prblm

Hi,
Thanks John ...I relly dont know whats the problem..i never faced such a prblm ever.

thnkls for your help Michael !!


Never Say Die
dhanish
Regular Advisor

Re: remsh/rsh prblm

Hi John,
I tried that...i get nothing just a prompt.

thnks
Never Say Die
John Carr_2
Honored Contributor

Re: remsh/rsh prblm

Hi

im burnt out hope you can find someone to resolve this I look forward to seeing the solution.

good luck
John.
Jeff Schussele
Honored Contributor

Re: remsh/rsh prblm

Have you checked to see if the HP-UX system has a /var/adm/inetd.sec file & if so what it contains?

Just a thought,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steve Post
Trusted Contributor

Re: remsh/rsh prblm

Might be an environmental issue. I.e. some variables are not set right.

Log into the sparc like normal
run env > /tmp/env.sparc1
remsh into the sparc from hp
run env > /tmp/env.sparc2
log into the hp like normal
run env > /tmp/env.hp1
log into the hp from the sparc via remsh just to run the command
env > /tmp/env.hp2

Now look at the four files. There is probably a difference between env.hp1 and env.hp2. My GUESS it that difference is why is fails.

where is the environment set? well one place is /etc/profile. Another is root's home at .profile (if you have a .profile there).

one other thing I did not see in here. Make sure the .rhosts permissions is set to 400.
Tor-Arne Nostdal
Trusted Contributor

Re: remsh/rsh prblm

Have you tried to check that you really get hold of the correct command

solaris# remsh hpux 'which uptime'
/usr/bin/uptime

Then run with full path specification
solaris# remsh hpux '/usr/bin/uptime'

/Tor-Arne

I'm trying to become President of the state I'm in...
Adam Ranville_2
New Member

Re: remsh/rsh prblm

I now have the same problem to a tee...rlogin works but rsh does not.

Did anyone ever find out why?

Steven E. Protter
Exalted Contributor

Re: remsh/rsh prblm

Through 33 posts not a mention of how insecure this entire setup is.

Makes me cringe. Seems you could do what you want to do with Secure shell and stop leaving your system wide open, using the Berkeley protocols.

https://payment.ecommerce.hp.com/cgi-bin/swdepot_parser.cgi/cgi/try.pl?productNumber=T1471AA&date=

Here is a cookbook on how to set things up for passwordless ssh which is the same as rsh.


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
Adam Ranville_2
New Member

Re: remsh/rsh prblm

(Shrugs shoulders)

COuldn't agree more, just can't change developer build processes over night...


I seem to remember a patch fixing this for me ages ago...I just can't remember the patch, it was a weird problem that required a somewhat unrelated patch.

Adam Ranville_2
New Member

Re: remsh/rsh prblm

Stupid problem, Stupid answer I guess....

dhanish - check your nsswitch.conf and make sure that services doesn't have NIS or anything strange as a lookup.

By default (at least I never made the change and it's a clean install) /etc/services is looked up via NIS. Make sure that this is changed to look in local files.

RSH from any host now works for me.

Commence head banging...