<?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-script for changing passwords in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723402#M63642</link>
    <description>From &lt;BR /&gt;&lt;A href="http://aa11.cjb.net/hpux_admin/1998/0087.html" target="_blank"&gt;http://aa11.cjb.net/hpux_admin/1998/0087.html&lt;/A&gt;&lt;BR /&gt;--&lt;BR /&gt;/usr/lbin/getprpw  [-r] [-m option[,option]]  logonid&lt;BR /&gt;&lt;BR /&gt;NOTE.  This is an undocumented command and not supported for direct use by &lt;BR /&gt;end users.&lt;BR /&gt;--&lt;BR /&gt;probably this already can do the job you're trying to code?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 15 May 2002 12:37:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-05-15T12:37:32Z</dc:date>
    <item>
      <title>shell-script for changing passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723396#M63636</link>
      <description>I have the following problem:&lt;BR /&gt;I must change a password for other users using a shell script which runs with system administrator rights.&lt;BR /&gt;&lt;BR /&gt;My test script: (in the future, I will get the login name and the password by other way, but for testing "read login" and "read password" will be enough)&lt;BR /&gt;&lt;BR /&gt;echo "login-name:"&lt;BR /&gt;read loginname&lt;BR /&gt;echo "password:"&lt;BR /&gt;read passw&lt;BR /&gt;passwd $loginname &amp;lt;&amp;lt;@&lt;BR /&gt;$passwd&lt;BR /&gt;$passwd&lt;BR /&gt;@&lt;BR /&gt;&lt;BR /&gt;But this little here-script doesn't run!&lt;BR /&gt;At the end of the here-script I get twice a input line for the new password. &lt;BR /&gt;With other orders I already used here-scripts in similar ways without problems - how I can solve this problem?</description>
      <pubDate>Tue, 14 May 2002 12:52:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723396#M63636</guid>
      <dc:creator>Deinert Arthur</dc:creator>
      <dc:date>2002-05-14T12:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: shell-script for changing passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723397#M63637</link>
      <description>Hi,&lt;BR /&gt;You can use the "expect" software for this ... and you can find that at &lt;A href="http://hpux.tn.tudelft.nl/" target="_blank"&gt;http://hpux.tn.tudelft.nl/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Tom</description>
      <pubDate>Tue, 14 May 2002 12:55:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723397#M63637</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2002-05-14T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: shell-script for changing passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723398#M63638</link>
      <description>You need to use expect or perl.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 14 May 2002 12:56:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723398#M63638</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-05-14T12:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: shell-script for changing passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723399#M63639</link>
      <description>This is because passwd doesn't take input from anything but a terminal (its a security feature!) - As Tom mentioned, Expect is the usual way of getting around this... If you hunt around on some expect sites, you'll probably also find a script that does exactly what you want.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Tue, 14 May 2002 12:58:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723399#M63639</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-05-14T12:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: shell-script for changing passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723400#M63640</link>
      <description>It would be something like this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/local/bin/expect -f&lt;BR /&gt;set username $env(UNAME)&lt;BR /&gt;set password $env(UPASS)&lt;BR /&gt;&lt;BR /&gt;spawn passwd $username&lt;BR /&gt;expect "New password:"&lt;BR /&gt;send "$password\r"&lt;BR /&gt;expect "Re-enter new password:"&lt;BR /&gt;send "$password\r"&lt;BR /&gt;send "exit\r"&lt;BR /&gt;expect eof&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;from:&lt;BR /&gt;&lt;A href="http://www.netsys.com/sunmgr/1997-08/msg00082.html" target="_blank"&gt;http://www.netsys.com/sunmgr/1997-08/msg00082.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 14 May 2002 13:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723400#M63640</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-05-14T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: shell-script for changing passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723401#M63641</link>
      <description>And for a perl example look here (search for change_passwd.pl):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://tlc.perlarchive.com/articles/perl/ls0001.shtml" target="_blank"&gt;http://tlc.perlarchive.com/articles/perl/ls0001.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 14 May 2002 13:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723401#M63641</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-05-14T13:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: shell-script for changing passwords</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723402#M63642</link>
      <description>From &lt;BR /&gt;&lt;A href="http://aa11.cjb.net/hpux_admin/1998/0087.html" target="_blank"&gt;http://aa11.cjb.net/hpux_admin/1998/0087.html&lt;/A&gt;&lt;BR /&gt;--&lt;BR /&gt;/usr/lbin/getprpw  [-r] [-m option[,option]]  logonid&lt;BR /&gt;&lt;BR /&gt;NOTE.  This is an undocumented command and not supported for direct use by &lt;BR /&gt;end users.&lt;BR /&gt;--&lt;BR /&gt;probably this already can do the job you're trying to code?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 May 2002 12:37:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-for-changing-passwords/m-p/2723402#M63642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-05-15T12:37:32Z</dc:date>
    </item>
  </channel>
</rss>

