<?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: su -m &amp;lt;user&amp;gt; passwordless? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/su-m-lt-user-gt-passwordless/m-p/5277676#M657650</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Startup scripts are run as the 'root' user and thus you can launch *your* script from within the startup wrapper with:&lt;BR /&gt;&lt;BR /&gt;su - someuser -c '/usr/local/bin/someuser.sh'&lt;BR /&gt;&lt;BR /&gt;If a non-root process attempts to do a 'su' an interactive password prompt will be offered.  You can't defeat this with redirection.  In that case, your best recourse is probably to use  'expect':&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/Expect" target="_blank"&gt;http://en.wikipedia.org/wiki/Expect&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 24 Mar 2011 21:10:18 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2011-03-24T21:10:18Z</dc:date>
    <item>
      <title>su -m &lt;user&gt; passwordless?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-m-lt-user-gt-passwordless/m-p/5277675#M657649</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;I have a script which prompts for password for a non-root user, can I avoid that?&lt;BR /&gt;&lt;BR /&gt;su -m &lt;USER&gt; &lt;BR /&gt;Prompts for a password.&lt;BR /&gt;&lt;BR /&gt;Its a startup script and the start up fails?&lt;BR /&gt;&lt;BR /&gt;How can I fix this?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/USER&gt;</description>
      <pubDate>Thu, 24 Mar 2011 21:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-m-lt-user-gt-passwordless/m-p/5277675#M657649</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2011-03-24T21:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: su -m &lt;user&gt; passwordless?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-m-lt-user-gt-passwordless/m-p/5277676#M657650</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Startup scripts are run as the 'root' user and thus you can launch *your* script from within the startup wrapper with:&lt;BR /&gt;&lt;BR /&gt;su - someuser -c '/usr/local/bin/someuser.sh'&lt;BR /&gt;&lt;BR /&gt;If a non-root process attempts to do a 'su' an interactive password prompt will be offered.  You can't defeat this with redirection.  In that case, your best recourse is probably to use  'expect':&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/Expect" target="_blank"&gt;http://en.wikipedia.org/wiki/Expect&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 24 Mar 2011 21:10:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-m-lt-user-gt-passwordless/m-p/5277676#M657650</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-03-24T21:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: su -m &lt;user&gt; passwordless?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-m-lt-user-gt-passwordless/m-p/5277677#M657651</link>
      <description>Thanks!</description>
      <pubDate>Thu, 24 Mar 2011 21:31:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-m-lt-user-gt-passwordless/m-p/5277677#M657651</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2011-03-24T21:31:30Z</dc:date>
    </item>
  </channel>
</rss>

