<?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: days between password changes problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378772#M197161</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You are right. Even if root changes the password, the restriction will still be applied. &lt;BR /&gt;&lt;BR /&gt;I do the following in such cases.&lt;BR /&gt;&lt;BR /&gt;1. Ask if the user knows the password on the system. If so, simply run 'modprpw -k &lt;LOGIN&gt;' and the user should be able to login.&lt;BR /&gt;&lt;BR /&gt;2. If the user doesn't know the password, there are two options&lt;BR /&gt;    a. Ask for a HP system where user knows the password. Simply grab the encrypted string from /tcb/files/auth/&lt;FIRST_LETTER_OF_LOGIN&gt;/&lt;LOGIN&gt; file from that system and replace the existing encrypted string with it on the local system. Run "modprpw -k &lt;LOGIN&gt;'.&lt;BR /&gt;    b. If the user doesn't have a working account on any other HP system, then generate an encrypted password for yourself using /usr/lib/makekey program. It takes exactly 10 chars with first 8 being the password. The last two chars are to be random and are called salt. For ex., to set a password of "Bla123!" do&lt;BR /&gt;&lt;BR /&gt;echo "Okay123!xy" |/usr/lib/makekey&lt;BR /&gt;&lt;BR /&gt;Copy the encrypted string thus generated and put it in the users' tcb file and run 'modprpw -k &lt;LOGIN&gt;'.&lt;BR /&gt;&lt;BR /&gt;Note that editing the user tcb files is not a clean method. Ensure that no other SA is on the system doing account related stuff while you are editing the tcb files.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LOGIN&gt;&lt;/LOGIN&gt;&lt;/LOGIN&gt;&lt;/FIRST_LETTER_OF_LOGIN&gt;&lt;/LOGIN&gt;</description>
    <pubDate>Tue, 14 Sep 2004 19:52:52 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-09-14T19:52:52Z</dc:date>
    <item>
      <title>days between password changes problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378769#M197158</link>
      <description>Am I doing something wrong or is this a feature?&lt;BR /&gt;&lt;BR /&gt;I recently changed the system-wide default for "Time between password changes (Days)" via SAM --&amp;gt; Auditing and Security --&amp;gt; System Security Policies --&amp;gt; Password Aging Policies, and set the number of days to 7, which should mean that a user cannot change passwords until 7 days have elapsed (to prevent quick changes to re-use the password).  That sounds good and seems to work.&lt;BR /&gt;&lt;BR /&gt;It seems to work too well.  An account was deactivated due to password lifetime expiry. So in SAM I reactivated the account and the system generated a password. The user was able to log in using that password, but could not change it.&lt;BR /&gt;&lt;BR /&gt;Password cannot be changed. Reason: minimum time between password changes.&lt;BR /&gt;&lt;BR /&gt;I thought that if root changed the password, it should either request a new one immediately, or allow the user to change their own. How do I get password resets/account reactivations to ignore the "days between" rule?&lt;BR /&gt;&lt;BR /&gt;This is on an HP-UX 11i system with Trusted passwords.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Sep 2004 12:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378769#M197158</guid>
      <dc:creator>Gord Moore</dc:creator>
      <dc:date>2004-09-14T12:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: days between password changes problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378770#M197159</link>
      <description>/usr/lbin/getprpw -m mintm user_name&lt;BR /&gt;/usr/lbin/getprpw -m spwchg user_name&lt;BR /&gt;&lt;BR /&gt;The spwchg should be the date when you reactivated the account ans set the password for user. If not this is the problem. I think this is what trusted system gives.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Tue, 14 Sep 2004 12:38:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378770#M197159</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-09-14T12:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: days between password changes problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378771#M197160</link>
      <description>Gord,&lt;BR /&gt;&lt;BR /&gt;  Check the exptm and mintm settings for the user.&lt;BR /&gt;&lt;BR /&gt;  If the value for exptm is LESS than mintm then the user CANNOT change the password&lt;BR /&gt;&lt;BR /&gt;  # /usr/lbin/modprpw -m exptm=0,mintm=1 &lt;USER&gt;&lt;BR /&gt; &lt;BR /&gt;  # su - &lt;USER&gt;&lt;BR /&gt;  &lt;BR /&gt;  &lt;USER&gt; passwd &lt;BR /&gt;  Password cannot be changed.  Reason: minimum time between password changes.&lt;BR /&gt;  &lt;USER&gt;&lt;BR /&gt;&lt;BR /&gt;  user /usr/lbin/getprpm -m exptm,mintm &lt;USERNAME&gt; to get the settings.&lt;BR /&gt;&lt;BR /&gt;  If needed set using /usr/lbin/modprpw command.&lt;BR /&gt;&lt;BR /&gt;--Sundar.&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;&lt;/USERNAME&gt;&lt;/USER&gt;&lt;/USER&gt;&lt;/USER&gt;&lt;/USER&gt;</description>
      <pubDate>Tue, 14 Sep 2004 12:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378771#M197160</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-09-14T12:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: days between password changes problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378772#M197161</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You are right. Even if root changes the password, the restriction will still be applied. &lt;BR /&gt;&lt;BR /&gt;I do the following in such cases.&lt;BR /&gt;&lt;BR /&gt;1. Ask if the user knows the password on the system. If so, simply run 'modprpw -k &lt;LOGIN&gt;' and the user should be able to login.&lt;BR /&gt;&lt;BR /&gt;2. If the user doesn't know the password, there are two options&lt;BR /&gt;    a. Ask for a HP system where user knows the password. Simply grab the encrypted string from /tcb/files/auth/&lt;FIRST_LETTER_OF_LOGIN&gt;/&lt;LOGIN&gt; file from that system and replace the existing encrypted string with it on the local system. Run "modprpw -k &lt;LOGIN&gt;'.&lt;BR /&gt;    b. If the user doesn't have a working account on any other HP system, then generate an encrypted password for yourself using /usr/lib/makekey program. It takes exactly 10 chars with first 8 being the password. The last two chars are to be random and are called salt. For ex., to set a password of "Bla123!" do&lt;BR /&gt;&lt;BR /&gt;echo "Okay123!xy" |/usr/lib/makekey&lt;BR /&gt;&lt;BR /&gt;Copy the encrypted string thus generated and put it in the users' tcb file and run 'modprpw -k &lt;LOGIN&gt;'.&lt;BR /&gt;&lt;BR /&gt;Note that editing the user tcb files is not a clean method. Ensure that no other SA is on the system doing account related stuff while you are editing the tcb files.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LOGIN&gt;&lt;/LOGIN&gt;&lt;/LOGIN&gt;&lt;/FIRST_LETTER_OF_LOGIN&gt;&lt;/LOGIN&gt;</description>
      <pubDate>Tue, 14 Sep 2004 19:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378772#M197161</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-09-14T19:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: days between password changes problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378773#M197162</link>
      <description>Thanks Anil and Sundar. &lt;BR /&gt;&lt;BR /&gt;I am going to copy Sri's answer into my tip book because it really answers the question that I cannot ignore the "days between" rule. It seems a kludge to have to edit the tcb files manually. Oh well. &lt;BR /&gt;&lt;BR /&gt;Thanks all.&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Sep 2004 10:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/days-between-password-changes-problem/m-p/3378773#M197162</guid>
      <dc:creator>Gord Moore</dc:creator>
      <dc:date>2004-09-15T10:18:03Z</dc:date>
    </item>
  </channel>
</rss>

