<?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 newuser password in shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586954#M725580</link>
    <description>MP,&lt;BR /&gt;&lt;BR /&gt;you might want to try working with a simular GID. I suppose that is what there are intended for. If you have problems whith env. settings you can add the env in the script you are runnen. If thats not possible i suggest an r.... command. &lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
    <pubDate>Sat, 29 Sep 2001 10:59:42 GMT</pubDate>
    <dc:creator>G. Vrijhoeven</dc:creator>
    <dc:date>2001-09-29T10:59:42Z</dc:date>
    <item>
      <title>su newuser password in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586949#M725575</link>
      <description>How do I supply the newuser password when I do a&lt;BR /&gt;su - newuser in my shell script.&lt;BR /&gt;&lt;BR /&gt;The script is started under my username and I want to su to the application user account within my shell script but I'm not sure how to input the newuser password.&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 28 Sep 2001 16:56:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586949#M725575</guid>
      <dc:creator>Richard Marshall</dc:creator>
      <dc:date>2001-09-28T16:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: su newuser password in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586950#M725576</link>
      <description>Hi Richard:&lt;BR /&gt;&lt;BR /&gt;This isn't possible in pure shell script.  The 'su' expects to offer you an interactive query for the password.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Sep 2001 17:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586950#M725576</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-09-28T17:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: su newuser password in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586951#M725577</link>
      <description>Can't be done... only if you are currently root does it not as you for password&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x9fd0f841489fd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x9fd0f841489fd4118fef0090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Fri, 28 Sep 2001 17:04:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586951#M725577</guid>
      <dc:creator>Edward Alfert_2</dc:creator>
      <dc:date>2001-09-28T17:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: su newuser password in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586952#M725578</link>
      <description>Hi&lt;BR /&gt;Su being interactive, noluck for normal user to login in to another users.&lt;BR /&gt;Try some suid programs instead.&lt;BR /&gt;&lt;BR /&gt;If you are suing to app id to run app. programs only, why not set suid on that program.&lt;BR /&gt;&lt;BR /&gt;Prashant.</description>
      <pubDate>Fri, 28 Sep 2001 18:11:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586952#M725578</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-09-28T18:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: su newuser password in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586953#M725579</link>
      <description>Richard,&lt;BR /&gt;&lt;BR /&gt;I do not think this is possible with "su".&lt;BR /&gt;&lt;BR /&gt;Try rexec, remsh or rlogin "localhost" !&lt;BR /&gt;&lt;BR /&gt;There are several ways to authenticate without a password for these programs. I favor rexec with a .netrc file for this.&lt;BR /&gt;&lt;BR /&gt;Keep in mind, that you might need to call a script, that sources the profiles/loginscripts first, because rexec and remsh do not do this.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker</description>
      <pubDate>Sat, 29 Sep 2001 10:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586953#M725579</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-09-29T10:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: su newuser password in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586954#M725580</link>
      <description>MP,&lt;BR /&gt;&lt;BR /&gt;you might want to try working with a simular GID. I suppose that is what there are intended for. If you have problems whith env. settings you can add the env in the script you are runnen. If thats not possible i suggest an r.... command. &lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Sat, 29 Sep 2001 10:59:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586954#M725580</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2001-09-29T10:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: su newuser password in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586955#M725581</link>
      <description>Hello Richard,&lt;BR /&gt;&lt;BR /&gt;get yourself a copy of "expect" installed.&lt;BR /&gt;Then you can issue that password through "expect".&lt;BR /&gt;That's the only (simple) way I can think of (at 00:17h &lt;BR /&gt;at night ;-).&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Wodisch</description>
      <pubDate>Sat, 29 Sep 2001 21:15:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-newuser-password-in-shell-script/m-p/2586955#M725581</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-09-29T21:15:58Z</dc:date>
    </item>
  </channel>
</rss>

