<?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: User password change script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password-change-script/m-p/5990445#M483469</link>
    <description>&lt;P&gt;And what should the new password be?If it should be fixed, anyone who can read the script can easily uncover the password.&lt;/P&gt;&lt;P&gt;If it should be randomly generated, what do you want to do with it? Display it? Write it into a file? Or do you really want to create passwords that are not known to anyone at all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "/usr/sam/lbin/usermod.sam" command can be used to change a password automatically, but it will need the new password in hashed ("encrypted") form. Note: the hashed passwords can contain characters that are special to the shell, so you must use quotes or backslashes to prevent the shell from interpreting them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/usr/lbin/makekey can be used to convert passwords to hashed form (see "man makekey"), but because it requires the password to be exactly 8 characters + 2 characters of salt, it is not the best possible choice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax for usermod.sam is:&lt;/P&gt;&lt;PRE&gt;/usr/sam/lbin/usermod.sam -F -p '&amp;lt;new hashed password&amp;gt;' &amp;lt;username&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Mar 2013 08:11:24 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2013-03-11T08:11:24Z</dc:date>
    <item>
      <title>User password change script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password-change-script/m-p/5990275#M483468</link>
      <description>&lt;P&gt;Hi Team ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I need sample script for user password change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my requirement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;once i excute script -&amp;gt; ask user name -&amp;gt; after enter the username -&amp;gt; password change automaticaly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kindly provide your value input ASAP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 06:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password-change-script/m-p/5990275#M483468</guid>
      <dc:creator>Vengat_teme</dc:creator>
      <dc:date>2013-03-11T06:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: User password change script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-password-change-script/m-p/5990445#M483469</link>
      <description>&lt;P&gt;And what should the new password be?If it should be fixed, anyone who can read the script can easily uncover the password.&lt;/P&gt;&lt;P&gt;If it should be randomly generated, what do you want to do with it? Display it? Write it into a file? Or do you really want to create passwords that are not known to anyone at all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "/usr/sam/lbin/usermod.sam" command can be used to change a password automatically, but it will need the new password in hashed ("encrypted") form. Note: the hashed passwords can contain characters that are special to the shell, so you must use quotes or backslashes to prevent the shell from interpreting them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/usr/lbin/makekey can be used to convert passwords to hashed form (see "man makekey"), but because it requires the password to be exactly 8 characters + 2 characters of salt, it is not the best possible choice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax for usermod.sam is:&lt;/P&gt;&lt;PRE&gt;/usr/sam/lbin/usermod.sam -F -p '&amp;lt;new hashed password&amp;gt;' &amp;lt;username&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Mar 2013 08:11:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-password-change-script/m-p/5990445#M483469</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2013-03-11T08:11:24Z</dc:date>
    </item>
  </channel>
</rss>

