<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Shell question (rexec) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604120#M854221</link>
    <description>Huber,&lt;BR /&gt;&lt;BR /&gt;Sorry that I did not see you request earlier.  With HP-UX, you can write a C program to carry out rexec commands without having to enter the password.&lt;BR /&gt;&lt;BR /&gt;Compile it using the HP bundles C compiler by typing cc remex.c -o remex.&lt;BR /&gt;&lt;BR /&gt;For use:&lt;BR /&gt;&lt;BR /&gt;remex myhost "/sbin/ioscan -ufnCdisk" -q&lt;BR /&gt;&lt;BR /&gt;It is quite secure as the way that I encode the password into it means that srunning a strings on the binary will not revel the password.</description>
    <pubDate>Sun, 11 Nov 2001 18:01:16 GMT</pubDate>
    <dc:creator>Joseph A Benaiah_1</dc:creator>
    <dc:date>2001-11-11T18:01:16Z</dc:date>
    <item>
      <title>Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604112#M854213</link>
      <description>Hi, i would like in a shell to automate a remote execution by using rexec (not remsh!)&lt;BR /&gt;But did not find any solution to authenticate myself ; here is the tests i made :&lt;BR /&gt;&lt;BR /&gt;srvA&amp;gt;rexec srvB -l logB pwd &amp;lt;&amp;lt; !&lt;BR /&gt;`echo $pass`&lt;BR /&gt;!&lt;BR /&gt;-&amp;gt; then i'm asked for the password&lt;BR /&gt;&lt;BR /&gt;srvA&amp;gt;echo $pass | rexec srvB -l logB pwd&lt;BR /&gt;-&amp;gt; idem&lt;BR /&gt;&lt;BR /&gt;Any idea ?</description>
      <pubDate>Tue, 30 Oct 2001 16:26:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604112#M854213</guid>
      <dc:creator>Sebastien Huber</dc:creator>
      <dc:date>2001-10-30T16:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604113#M854214</link>
      <description>Does svrb have a .rhosts entry for svra?&lt;BR /&gt;&lt;BR /&gt;I would recommend installing Secure Shell and using that to perform trusted remote execution type commands.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Tue, 30 Oct 2001 16:30:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604113#M854214</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-10-30T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604114#M854215</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;.rhosts is the file that should take care of your problem&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Tue, 30 Oct 2001 16:33:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604114#M854215</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-10-30T16:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604115#M854216</link>
      <description>Thanks for this suggestion, but i've never tried to install secure shell, can u give me more information to do this ?</description>
      <pubDate>Tue, 30 Oct 2001 16:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604115#M854216</guid>
      <dc:creator>Sebastien Huber</dc:creator>
      <dc:date>2001-10-30T16:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604116#M854217</link>
      <description>From the man page of rexec:&lt;BR /&gt;&lt;BR /&gt;The rexec command works the same as remsh except that it uses the rexec() library routine and rexecd for command execution (see rexec(3N) and rexecd(1M)) and does not support Kerberos authentication.  rexec prompts for a password before executing the command instead of using hosts.equiv for authentication.  It should be used in instances where a password to a remote account is known but there are insufficient permissions for remsh.&lt;BR /&gt;&lt;BR /&gt;Think you'll have to use a password with rexec.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 30 Oct 2001 16:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604116#M854217</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-10-30T16:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604117#M854218</link>
      <description>Ok, i think i don't have given enough informations, here they are :&lt;BR /&gt;1) i want to perform a remote shell execution&lt;BR /&gt;2) i do not want to use a .rhosts file, users have to authenticate themselves&lt;BR /&gt;3) i do not want user to be able to show the password by using the ps command&lt;BR /&gt;&lt;BR /&gt;Any idea ?</description>
      <pubDate>Wed, 31 Oct 2001 14:20:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604117#M854218</guid>
      <dc:creator>Sebastien Huber</dc:creator>
      <dc:date>2001-10-31T14:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604118#M854219</link>
      <description>Have you looked at using expect? This newsgroup posting may help.&lt;BR /&gt;&lt;BR /&gt;I'm using the following unix expect script to interact the Oracle&lt;BR /&gt;sqlplus utility. Sqlplus prompts for a password, expect sends the password,&lt;BR /&gt;then I 'interact'.  Most of the time this works, but every once in a&lt;BR /&gt;while, the password shows on the screen, and expect just sits there&lt;BR /&gt;waiting for something, and doesn't make it to interact.  If I put in a&lt;BR /&gt;'sleep 1', I don't have this problem, but am not sure why.  Any&lt;BR /&gt;pointers?  I'd like to (1) avoid the delay if possible, and (2) insure&lt;BR /&gt;that the password never shows even with the 'sleep', but without knowing&lt;BR /&gt;what's happening, I'm not confident that 'sleep 1' will always work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/usr/local/bin/expect --&lt;BR /&gt;set usern "testuser"&lt;BR /&gt;set passw [exec aprogramtogetpassword $usern]&lt;BR /&gt;set timeout -1&lt;BR /&gt;eval spawn sqlplus $usern&lt;BR /&gt;log_user 0&lt;BR /&gt;expect "Enter password: "&lt;BR /&gt;# why do I need the following sleep?:&lt;BR /&gt;sleep 1&lt;BR /&gt;send "$passw\r"&lt;BR /&gt;log_user 1&lt;BR /&gt;expect {&lt;BR /&gt;  "Enter user-name: " exit&lt;BR /&gt;  "Connected"&lt;BR /&gt;} &lt;BR /&gt;interact</description>
      <pubDate>Wed, 31 Oct 2001 14:31:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604118#M854219</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-10-31T14:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604119#M854220</link>
      <description>Huber,&lt;BR /&gt;The easiest way to install ssh is to get the depots from the hpux porting site.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/" target="_blank"&gt;http://hpux.connect.org.uk/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;get openssh, openssl, and zlib&lt;BR /&gt;&lt;BR /&gt;Either make them a depot, or install seperately with openssh being the last install because of dependencies.  I'll attach my notes for installation and setting up a trust based on keys&lt;BR /&gt;&lt;BR /&gt;Of course hostnames and domains have been changed to protect the guilty</description>
      <pubDate>Wed, 31 Oct 2001 14:47:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604119#M854220</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-10-31T14:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604120#M854221</link>
      <description>Huber,&lt;BR /&gt;&lt;BR /&gt;Sorry that I did not see you request earlier.  With HP-UX, you can write a C program to carry out rexec commands without having to enter the password.&lt;BR /&gt;&lt;BR /&gt;Compile it using the HP bundles C compiler by typing cc remex.c -o remex.&lt;BR /&gt;&lt;BR /&gt;For use:&lt;BR /&gt;&lt;BR /&gt;remex myhost "/sbin/ioscan -ufnCdisk" -q&lt;BR /&gt;&lt;BR /&gt;It is quite secure as the way that I encode the password into it means that srunning a strings on the binary will not revel the password.</description>
      <pubDate>Sun, 11 Nov 2001 18:01:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604120#M854221</guid>
      <dc:creator>Joseph A Benaiah_1</dc:creator>
      <dc:date>2001-11-11T18:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604121#M854222</link>
      <description>Huber,&lt;BR /&gt;&lt;BR /&gt;I seem to have problems attaching the source code in the forum area.&lt;BR /&gt;&lt;BR /&gt;Lets try again.</description>
      <pubDate>Sun, 11 Nov 2001 18:07:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604121#M854222</guid>
      <dc:creator>Joseph A Benaiah_1</dc:creator>
      <dc:date>2001-11-11T18:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shell question (rexec)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604122#M854223</link>
      <description>Huber,&lt;BR /&gt;&lt;BR /&gt;This thread, although covering telnet, covers the same. You need expect, tcl, and tk:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x54e2c6af36b7d5118ff10090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x54e2c6af36b7d5118ff10090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Sun, 11 Nov 2001 20:34:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-rexec/m-p/2604122#M854223</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-11T20:34:51Z</dc:date>
    </item>
  </channel>
</rss>

