<?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: run ssh in a setuid program in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/run-ssh-in-a-setuid-program/m-p/3875603#M739232</link>
    <description>&amp;gt;I have a setuid program which spawns to run&lt;BR /&gt;&amp;gt; ssh.&lt;BR /&gt;&lt;BR /&gt;So when this program is running, it acts as&lt;BR /&gt;if it were being run by a user with the&lt;BR /&gt;program's uid, not the actual user's uid.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [..] ssh seems not be able to read the key&lt;BR /&gt;&amp;gt; file if the key file is readable only to&lt;BR /&gt;&amp;gt; the user of the setuid program.&lt;BR /&gt;&lt;BR /&gt;Which is as it should be.  A user with the&lt;BR /&gt;program's uid should not be able to read a&lt;BR /&gt;file which only the actual user can read.&lt;BR /&gt;&lt;BR /&gt;It may not be easy to pretend to be two&lt;BR /&gt;different users at one time.</description>
    <pubDate>Mon, 09 Oct 2006 13:29:31 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2006-10-09T13:29:31Z</dc:date>
    <item>
      <title>run ssh in a setuid program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-ssh-in-a-setuid-program/m-p/3875601#M739230</link>
      <description>I have a setuid program which spawns to run ssh.  The problem is, ssh seems not be able to read the key file if the key file is readable only to the user of the setuid program.  Ssh asks for the passphrase of the key file, which is actually not password protected.  I tried changing the permission of the key file to world readable.  Then ssh could read the key file and connected to the server without a password.&lt;BR /&gt;&lt;BR /&gt;Why is this so?</description>
      <pubDate>Fri, 06 Oct 2006 01:49:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-ssh-in-a-setuid-program/m-p/3875601#M739230</guid>
      <dc:creator>Raymond Yip</dc:creator>
      <dc:date>2006-10-06T01:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: run ssh in a setuid program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-ssh-in-a-setuid-program/m-p/3875602#M739231</link>
      <description>Raymond &lt;BR /&gt;you insert its key in file .ssh of user ? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Oct 2006 13:20:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-ssh-in-a-setuid-program/m-p/3875602#M739231</guid>
      <dc:creator>Calandrello</dc:creator>
      <dc:date>2006-10-09T13:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: run ssh in a setuid program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-ssh-in-a-setuid-program/m-p/3875603#M739232</link>
      <description>&amp;gt;I have a setuid program which spawns to run&lt;BR /&gt;&amp;gt; ssh.&lt;BR /&gt;&lt;BR /&gt;So when this program is running, it acts as&lt;BR /&gt;if it were being run by a user with the&lt;BR /&gt;program's uid, not the actual user's uid.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [..] ssh seems not be able to read the key&lt;BR /&gt;&amp;gt; file if the key file is readable only to&lt;BR /&gt;&amp;gt; the user of the setuid program.&lt;BR /&gt;&lt;BR /&gt;Which is as it should be.  A user with the&lt;BR /&gt;program's uid should not be able to read a&lt;BR /&gt;file which only the actual user can read.&lt;BR /&gt;&lt;BR /&gt;It may not be easy to pretend to be two&lt;BR /&gt;different users at one time.</description>
      <pubDate>Mon, 09 Oct 2006 13:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-ssh-in-a-setuid-program/m-p/3875603#M739232</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-10-09T13:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: run ssh in a setuid program</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/run-ssh-in-a-setuid-program/m-p/3875604#M739233</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Having two users involved in a password free transaction is difficult and not really recommended.&lt;BR /&gt;&lt;BR /&gt;If you are being prompted for a passphrase then when you set up your id_dsa.pub or id_rsa.pub you or the user entered a passphrase.&lt;BR /&gt;&lt;BR /&gt;Try doing the ssh-keygen command again without a passphrase and see if that helps.&lt;BR /&gt;&lt;BR /&gt;There is nothing intrinsic to ssh that should be causing this issue.&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 09 Oct 2006 13:32:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/run-ssh-in-a-setuid-program/m-p/3875604#M739233</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-10-09T13:32:23Z</dc:date>
    </item>
  </channel>
</rss>

