<?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: Changing passwd by script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503238#M680959</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;There are number of scripts around.&lt;BR /&gt;&lt;BR /&gt;At one stage, I wrote  per script to&lt;BR /&gt;add bulk Unix accounts (with passwords)&lt;BR /&gt;on Linux, HP-UX, Solaris, Tru64, and AIX.&lt;BR /&gt;&lt;BR /&gt;Check it and you will get an idea how to do&lt;BR /&gt;what you want easily:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.circlingcycle.com.au/Unix-sources/add-batch-Unix-accounts.pl.txt" target="_blank"&gt;http://www.circlingcycle.com.au/Unix-sources/add-batch-Unix-accounts.pl.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
    <pubDate>Fri, 25 Sep 2009 07:20:39 GMT</pubDate>
    <dc:creator>VK2COT</dc:creator>
    <dc:date>2009-09-25T07:20:39Z</dc:date>
    <item>
      <title>Changing passwd by script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503235#M680956</link>
      <description>&lt;!--!*#--&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;How can I change password for any non-root users by using a script?&lt;BR /&gt;Basically, I want to know how can we INPUT password twice while changing password in a script.&lt;BR /&gt;&lt;BR /&gt;Changing password for abcd&lt;BR /&gt;New password:    &amp;lt;&amp;lt;===&lt;BR /&gt;Re-enter new password:  &amp;lt;&amp;lt;===&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 25 Sep 2009 04:27:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503235#M680956</guid>
      <dc:creator>UniRock</dc:creator>
      <dc:date>2009-09-25T04:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Changing passwd by script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503236#M680957</link>
      <description>&lt;!--!*#--&gt;Believe it or not, a Forum search for&lt;BR /&gt;keywords like, say:&lt;BR /&gt;      change password script&lt;BR /&gt;might find a suggestion or two in a couple of&lt;BR /&gt;previous threads on this topic.</description>
      <pubDate>Fri, 25 Sep 2009 05:55:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503236#M680957</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-09-25T05:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Changing passwd by script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503237#M680958</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;I have already searched and came mostly across "expect". But could not get a clear picture of how to use it. Is that the only tool meant for changing password by script.&lt;BR /&gt;&lt;BR /&gt;Scenario:&lt;BR /&gt;If I have 5 users say a,b,c,d,e; how can I change their passwords to a default one with the help of script (please ignore security concerns).&lt;BR /&gt;This is basically what I am looking for.&lt;BR /&gt;&lt;BR /&gt;Advices will be appreciated..</description>
      <pubDate>Fri, 25 Sep 2009 06:34:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503237#M680958</guid>
      <dc:creator>UniRock</dc:creator>
      <dc:date>2009-09-25T06:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing passwd by script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503238#M680959</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;There are number of scripts around.&lt;BR /&gt;&lt;BR /&gt;At one stage, I wrote  per script to&lt;BR /&gt;add bulk Unix accounts (with passwords)&lt;BR /&gt;on Linux, HP-UX, Solaris, Tru64, and AIX.&lt;BR /&gt;&lt;BR /&gt;Check it and you will get an idea how to do&lt;BR /&gt;what you want easily:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.circlingcycle.com.au/Unix-sources/add-batch-Unix-accounts.pl.txt" target="_blank"&gt;http://www.circlingcycle.com.au/Unix-sources/add-batch-Unix-accounts.pl.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Fri, 25 Sep 2009 07:20:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503238#M680959</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-09-25T07:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing passwd by script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503239#M680960</link>
      <description>Hello UniRock!&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have already searched and came mostly across "expect". &lt;BR /&gt;&amp;gt; Is that the only tool meant for changing password by script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To automate dialogs with text-based programs anything that can do a "popen" (or similar workaraound) will be fine. &lt;BR /&gt;&lt;BR /&gt;"expect" is just one of the most popular tools to create such interfaces.&lt;BR /&gt;&lt;BR /&gt;Attached is a script for "expect" that does what you need.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Kobylka</description>
      <pubDate>Fri, 25 Sep 2009 10:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503239#M680960</guid>
      <dc:creator>kobylka</dc:creator>
      <dc:date>2009-09-25T10:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing passwd by script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503240#M680961</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You could use the Perl script I provided in this thread to generate an encrypted password for use with 'usermod':&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1252591" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1252591&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Sep 2009 11:11:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503240#M680961</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-25T11:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Changing passwd by script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503241#M680962</link>
      <description>&amp;gt; how can I change their passwords to a default one &lt;BR /&gt;&lt;BR /&gt;I can not post the script but I use the following two commands in it to set the password to a default one.&lt;BR /&gt;&lt;BR /&gt;pw_encr=`echo "pw_def" | /usr//lbin/makekey`&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/usermod.sam -p pw_encr username&lt;BR /&gt;&lt;BR /&gt;The username can be a shell variable that is read from a file or given on the command line as $1.</description>
      <pubDate>Fri, 25 Sep 2009 11:47:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503241#M680962</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-09-25T11:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing passwd by script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503242#M680963</link>
      <description>Thanks everyone....&lt;BR /&gt;I will try your suggestions once I get back to work and will update you.</description>
      <pubDate>Sat, 26 Sep 2009 03:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-passwd-by-script/m-p/4503242#M680963</guid>
      <dc:creator>UniRock</dc:creator>
      <dc:date>2009-09-26T03:00:21Z</dc:date>
    </item>
  </channel>
</rss>

