<?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: change passwd using script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-passwd-using-script/m-p/4786521#M391402</link>
    <description>&lt;P&gt;Your usermod.sam command has unbalanced quotes and other errors. It looks like it would not work at all as posted. &lt;BR /&gt;&lt;BR /&gt;Please show the command line you used *exactly*: errors make it harder to figure out what is happening. Please remember that we, the forum readers, know only exactly the facts you're telling us, and nothing more.&lt;BR /&gt;&lt;BR /&gt;The makekey utility takes an input of exactly 10 characters, of which the first 8 characters will be the new password. Your "newpasswd001" has 12 characters. At least on HP-UX 11.23, the extra characters seem to be ignored.&lt;BR /&gt;&lt;BR /&gt;Effectively, you now have userid's password set to "newpassw" using the salt value "d0".&lt;BR /&gt;&lt;BR /&gt;Please see this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/ITRC-HP-Systems-Insight-Manager/Change-password/m-p/4707542#M42389" target="_blank"&gt;http://h30499.www3.hp.com/t5/ITRC-HP-Systems-Insight-Manager/Change-password/m-p/4707542#M42389&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It contains a small perl script for creating passwords of length 1-8 characters. For passwords with 9 or more characters, you would need something that uses the bigcrypt(3C) function instead of the classic Unix crypt(3C) as used by "makekey" and JRF's perl script.&lt;BR /&gt;&lt;BR /&gt;Attached is bigpw.c, a small C program (written by adapting a pw.c I found somewhere, most likely from this forum). It can be compiled using the default HP-UX K&amp;amp;R C compiler: run "cc -o bigpw bigpw.c -lsec" to compile it, then copy "bigpw" to /usr/local/bin or wherever you want it.&lt;BR /&gt;&lt;BR /&gt;With bigpw, you should be able to set 9-character or longer passwords:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/usermod.sam -p $(/usr/local/bin/bigpw 'newpasswd001') userid&lt;BR /&gt;&lt;BR /&gt;MK&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2011 17:00:02 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2011-07-06T17:00:02Z</dc:date>
    <item>
      <title>change passwd using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-passwd-using-script/m-p/4786520#M391401</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am trying to use a shell script to change the passwd of users in hpux 11.11 and 11.23 box.I am using usermod.sam `echo "newpasswd001"/usr/lib/makekey" userid,I didn't get any error but when I try to loging using the new passwd I am getting access denied error.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Does anyone knows whats happening?</description>
      <pubDate>Wed, 11 May 2011 08:57:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-passwd-using-script/m-p/4786520#M391401</guid>
      <dc:creator>Gireesh</dc:creator>
      <dc:date>2011-05-11T08:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: change passwd using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-passwd-using-script/m-p/4786521#M391402</link>
      <description>&lt;P&gt;Your usermod.sam command has unbalanced quotes and other errors. It looks like it would not work at all as posted. &lt;BR /&gt;&lt;BR /&gt;Please show the command line you used *exactly*: errors make it harder to figure out what is happening. Please remember that we, the forum readers, know only exactly the facts you're telling us, and nothing more.&lt;BR /&gt;&lt;BR /&gt;The makekey utility takes an input of exactly 10 characters, of which the first 8 characters will be the new password. Your "newpasswd001" has 12 characters. At least on HP-UX 11.23, the extra characters seem to be ignored.&lt;BR /&gt;&lt;BR /&gt;Effectively, you now have userid's password set to "newpassw" using the salt value "d0".&lt;BR /&gt;&lt;BR /&gt;Please see this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/ITRC-HP-Systems-Insight-Manager/Change-password/m-p/4707542#M42389" target="_blank"&gt;http://h30499.www3.hp.com/t5/ITRC-HP-Systems-Insight-Manager/Change-password/m-p/4707542#M42389&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It contains a small perl script for creating passwords of length 1-8 characters. For passwords with 9 or more characters, you would need something that uses the bigcrypt(3C) function instead of the classic Unix crypt(3C) as used by "makekey" and JRF's perl script.&lt;BR /&gt;&lt;BR /&gt;Attached is bigpw.c, a small C program (written by adapting a pw.c I found somewhere, most likely from this forum). It can be compiled using the default HP-UX K&amp;amp;R C compiler: run "cc -o bigpw bigpw.c -lsec" to compile it, then copy "bigpw" to /usr/local/bin or wherever you want it.&lt;BR /&gt;&lt;BR /&gt;With bigpw, you should be able to set 9-character or longer passwords:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/usermod.sam -p $(/usr/local/bin/bigpw 'newpasswd001') userid&lt;BR /&gt;&lt;BR /&gt;MK&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 17:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-passwd-using-script/m-p/4786521#M391402</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-07-06T17:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: change passwd using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-passwd-using-script/m-p/4786522#M391403</link>
      <description>The solution worked for me.Thank you Matti</description>
      <pubDate>Thu, 19 May 2011 10:55:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-passwd-using-script/m-p/4786522#M391403</guid>
      <dc:creator>Gireesh</dc:creator>
      <dc:date>2011-05-19T10:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: change passwd using script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-passwd-using-script/m-p/7009277#M490851</link>
      <description>&lt;P&gt;it works! thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 14:45:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-passwd-using-script/m-p/7009277#M490851</guid>
      <dc:creator>gulercan</dc:creator>
      <dc:date>2018-06-19T14:45:24Z</dc:date>
    </item>
  </channel>
</rss>

