<?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: Need help for solving rexec asking for password. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365740#M867209</link>
    <description>Just to elaborate on rexec: it is very different than rlogin/remsh/rcp. In the 3 'r' commands, the remote system validates the request with a .rhost file (or the more global hosts.equiv file). But for rexec, the remote system never needs any modification. Instead, a local file (.netrc) is used. This file is used for both ftp and rexec and contains 3 keywords: machine login password. After each keyword is the actual data so .netrc might have:&lt;BR /&gt; &lt;BR /&gt;machine yoda login blh password 123abc&lt;BR /&gt; &lt;BR /&gt;and now I could type: rexec yoda date&lt;BR /&gt;and I would get the date back, similar to remsh. The difference is that .netrc is on the local machine *and* it contains plaintext login/password information. This file will silently fail to work if the permissions are not 600, not in the user's $HOME directory or not owned by the user. For a highly secured management server, rexec is slightly better than remsh/rlogin. But the preferred remote managment tool is ssh.</description>
    <pubDate>Thu, 26 Aug 2004 11:48:08 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2004-08-26T11:48:08Z</dc:date>
    <item>
      <title>Need help for solving rexec asking for password.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365734#M867203</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I'm testing rsh or rexec command : (HPUX 11.11)&lt;BR /&gt;&lt;BR /&gt;A server rlogin to B server =&amp;gt; it's OK!&lt;BR /&gt;[gbm5:/] #rlogin gbm1&lt;BR /&gt;[gbm1:/] #&lt;BR /&gt;[gbm1:/] #&lt;BR /&gt;logout&lt;BR /&gt;Connection closed.&lt;BR /&gt;[gbm5:/] #&lt;BR /&gt;&lt;BR /&gt;B server test shell script:&lt;BR /&gt;[gbm1:/] #date&lt;BR /&gt;Thu Aug 26 20:19:07 EAT 2004&lt;BR /&gt;[gbm1:/] #cat a.sh&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;date &amp;gt;&amp;gt; /a.txt&lt;BR /&gt;[gbm1:/] #a.sh&lt;BR /&gt;[gbm1:/] #cat a.txt&lt;BR /&gt;Thu Aug 26 20:18:59 EAT 2004&lt;BR /&gt;Thu Aug 26 20:19:13 EAT 2004&lt;BR /&gt;[gbm1:/] #&lt;BR /&gt;&lt;BR /&gt;A server test for remote executing:&lt;BR /&gt;if I don't enter root password , it won't work:&lt;BR /&gt;&lt;BR /&gt;[gbm5:/] #rexec gbm1 -l root /a.sh&lt;BR /&gt;Password (gbm1:root):&lt;BR /&gt;rexecd: Login incorrect.&lt;BR /&gt;You have mail in /var/mail/root&lt;BR /&gt;[gbm5:/] #&lt;BR /&gt;&lt;BR /&gt;else Bingo!&lt;BR /&gt;[gbm5:/] #rexec gbm1 -l root /a.sh&lt;BR /&gt;Password (gbm1:root):&lt;BR /&gt;[gbm5:/] #&lt;BR /&gt;&lt;BR /&gt;[gbm1:/] #cat a.txt&lt;BR /&gt;Thu Aug 26 20:18:59 EAT 2004&lt;BR /&gt;Thu Aug 26 20:19:13 EAT 2004&lt;BR /&gt;Thu Aug 26 20:21:49 EAT 2004&lt;BR /&gt;[gbm1:/] #&lt;BR /&gt;&lt;BR /&gt;A server(gbm5) , root .rhosts:&lt;BR /&gt;[gbm5:/] #cat .rhosts&lt;BR /&gt;gbm1 root&lt;BR /&gt;[gbm5:/] #&lt;BR /&gt;&lt;BR /&gt;B server(gbm1) , root .rhosts:&lt;BR /&gt;[gbm1:/] #cat .rhosts&lt;BR /&gt;gbm5 root&lt;BR /&gt;[gbm1:/] #&lt;BR /&gt;&lt;BR /&gt;How could I exec a.sh at A server(gbm5)?&lt;BR /&gt;Even I tried rsh at A , and still failed:&lt;BR /&gt;&lt;BR /&gt;[gbm5:/] #rsh gbm1:/a.sh&lt;BR /&gt;rsh: gbm1:/a.sh: The operation is not allowed in a restricted shell.&lt;BR /&gt;[gbm5:/] #&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Need helps , appreicate for any suggestions.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Violin.&lt;BR /&gt;violin@gbm.com.tw&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Aug 2004 07:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365734#M867203</guid>
      <dc:creator>violin_1</dc:creator>
      <dc:date>2004-08-26T07:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for solving rexec asking for password.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365735#M867204</link>
      <description>Hi Violin,&lt;BR /&gt;&lt;BR /&gt;Is the .rhosts file set on the other machine?&lt;BR /&gt;Check in the ~HOME directory of the user used to execute the shell.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Carlo</description>
      <pubDate>Thu, 26 Aug 2004 07:30:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365735#M867204</guid>
      <dc:creator>Carlo Corthouts</dc:creator>
      <dc:date>2004-08-26T07:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for solving rexec asking for password.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365736#M867205</link>
      <description>First, where are the .rhosts files located?  The need to be in roots home directory on each of the servers.  Double check root's home directory in the password file to make sure the .rhosts files are in the proper location.  &lt;BR /&gt;&lt;BR /&gt;Second, there's no such thing as rsh in hp-ux - it's remsh.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 26 Aug 2004 07:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365736#M867205</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-08-26T07:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for solving rexec asking for password.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365737#M867206</link>
      <description>Yes , both A , B server exists .rhosts at $HOME directory:&lt;BR /&gt;&lt;BR /&gt;A server:&lt;BR /&gt;[gbm5:/] #cd $HOME&lt;BR /&gt;[gbm5:/] #pwd&lt;BR /&gt;/&lt;BR /&gt;[gbm5:/] #cat .rhosts&lt;BR /&gt;gbm1 root&lt;BR /&gt;[gbm5:/] #&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;B server:&lt;BR /&gt;[gbm1:/] #cd $HOME&lt;BR /&gt;[gbm1:/] #pwd&lt;BR /&gt;/&lt;BR /&gt;[gbm1:/] #cat .rhosts&lt;BR /&gt;gbm5 root&lt;BR /&gt;[gbm1:/] #&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And rlogin or rcp commands are testing normally between A and B.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Violin.</description>
      <pubDate>Thu, 26 Aug 2004 07:39:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365737#M867206</guid>
      <dc:creator>violin_1</dc:creator>
      <dc:date>2004-08-26T07:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for solving rexec asking for password.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365738#M867207</link>
      <description>As Pete mentioned, you need to use remsh instead of rexec, if you dont want to manually enter the password.&lt;BR /&gt;&lt;BR /&gt;rsh is the restricted shell in HP-UX (and is not associated with the r-cmd suite).&lt;BR /&gt;&lt;BR /&gt;rexec uses the rexecd server whereas remsh uses the remshd server. rexec uses a different user-authentication mechanism than the r-cmd suite.</description>
      <pubDate>Thu, 26 Aug 2004 07:56:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365738#M867207</guid>
      <dc:creator>Suresh Pai</dc:creator>
      <dc:date>2004-08-26T07:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for solving rexec asking for password.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365739#M867208</link>
      <description>Yes, Bingo , Thanks so much!</description>
      <pubDate>Thu, 26 Aug 2004 08:03:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365739#M867208</guid>
      <dc:creator>violin_1</dc:creator>
      <dc:date>2004-08-26T08:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for solving rexec asking for password.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365740#M867209</link>
      <description>Just to elaborate on rexec: it is very different than rlogin/remsh/rcp. In the 3 'r' commands, the remote system validates the request with a .rhost file (or the more global hosts.equiv file). But for rexec, the remote system never needs any modification. Instead, a local file (.netrc) is used. This file is used for both ftp and rexec and contains 3 keywords: machine login password. After each keyword is the actual data so .netrc might have:&lt;BR /&gt; &lt;BR /&gt;machine yoda login blh password 123abc&lt;BR /&gt; &lt;BR /&gt;and now I could type: rexec yoda date&lt;BR /&gt;and I would get the date back, similar to remsh. The difference is that .netrc is on the local machine *and* it contains plaintext login/password information. This file will silently fail to work if the permissions are not 600, not in the user's $HOME directory or not owned by the user. For a highly secured management server, rexec is slightly better than remsh/rlogin. But the preferred remote managment tool is ssh.</description>
      <pubDate>Thu, 26 Aug 2004 11:48:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365740#M867209</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-08-26T11:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for solving rexec asking for password.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365741#M867210</link>
      <description>It's my misunderstanding for rexec ,&lt;BR /&gt;I'll read it more clearly.</description>
      <pubDate>Thu, 26 Aug 2004 20:28:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-for-solving-rexec-asking-for-password/m-p/3365741#M867210</guid>
      <dc:creator>violin_1</dc:creator>
      <dc:date>2004-08-26T20:28:04Z</dc:date>
    </item>
  </channel>
</rss>

