1832507 Members
4725 Online
110043 Solutions
New Discussion

rexec fails on hpux host

 
eddiec
Contributor

rexec fails on hpux host



Ho do i enable the rexec service on an hpux host. I have a windows host thats wants to rexec to a hpux 11.00 box but it fails to get a communication connection. how do i make it work ??
3 REPLIES 3
Michael Tully
Honored Contributor

Re: rexec fails on hpux host

For starters you need to have the 'exec' selection available, so the port can be opened.

# vi /etc/inetd.conf
uncomment the line, where it starts with
exec
Save the file
# inetd -c (refresh inetd)

This is no guarantee this will actually work, but shoud get your started.
Anyone for a Mutiny ?
eddiec
Contributor

Re: rexec fails on hpux host

tried this, but still didnt work. How do i enable it for root access, i checked pam.conf but still had no joy with this.

The windows host tries to rexec host cmd
but cannot establish a connection to the hpux host!!
Bill Hassell
Honored Contributor

Re: rexec fails on hpux host

Since rexec can be a huge security risk, the rexecd on HP-UX tries to verify the incoming host. Since PCs are often based on a WINS server while Unix typically uses DNS. HP-UX will take the incoming IP address and resolve it to a hostname, then reverse the process to lookup the hostname and see the same IP address. This must succeed or the rexec will fail with no error message. Until nslookup can get a valid lookup in both directions, rexec will fail. WINS and DNS do not play well together.

rexec on the PC side will need some method to provide the .netrc information. In HP-UX, .netrc is a high risk file so permissions must be exact or it will silently fail. The PC rules are probably different. If you have a choice, use another HP-UX ox to perform an rexec test. This all assumes that you have not shutoff the service in /etc/inted.conf or disallowed rexec to your PC in the /var/adm/inetd.sec file.


Bill Hassell, sysadmin