<?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: Password Life scripting -- modprpw in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144518#M453312</link>
    <description>James, &lt;BR /&gt;&lt;BR /&gt;Yes, I will have a user list with the userid on each line. &lt;BR /&gt;&lt;BR /&gt;I would prefer to define it system wide, but we've got too many  hands in the cookie jar. Since we are only a service provider for the district we've got to adjust on a district by district basis.. &lt;BR /&gt;&lt;BR /&gt;That helps a lot. I will also be define each account to expire, at same time. &lt;BR /&gt;&lt;BR /&gt;So if I do the script it should look like this correct? (ADDING the "-e") &lt;BR /&gt;&lt;BR /&gt;To read input, you could do:&lt;BR /&gt;&lt;BR /&gt;while read UUNAME X&lt;BR /&gt;do&lt;BR /&gt;/usr/lbin/modprpw -e -m mintm=90 ${UUNAME}&lt;BR /&gt;done &amp;lt; districtuser.txt</description>
    <pubDate>Wed, 03 Dec 2008 16:20:44 GMT</pubDate>
    <dc:creator>rmueller58</dc:creator>
    <dc:date>2008-12-03T16:20:44Z</dc:date>
    <item>
      <title>Password Life scripting -- modprpw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144515#M453309</link>
      <description>We are discussing the possibility of defining a password life of 90 days, currently the value is null. We have several school districts, our largest wants it the others do not. &lt;BR /&gt;&lt;BR /&gt;I am wanting to work out the command for doing the district in question, I can get the users based on the HOMEDIR because we have segregated districts in this way, &lt;BR /&gt;&lt;BR /&gt;/home/$DIST/$user &lt;BR /&gt;&lt;BR /&gt;1st, question what is the MODPRPW command to define password life?&lt;BR /&gt;&lt;BR /&gt;Is it possible to read from a file containing those users in the districts in question? &lt;BR /&gt;&lt;BR /&gt;such as&lt;BR /&gt;&lt;BR /&gt;for uuname in `cat districtuser.txt`&lt;BR /&gt;do &lt;BR /&gt;/usr/lbin/modprpw -m mintm=&lt;VALUE 90=""&gt; $uuname&lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;What is the commandline option for defining the mintm? I noticed in the man pages it is 86400? is that hours or minutes? &lt;BR /&gt;&lt;BR /&gt;Anyone else have a method I'd appreciate the help.. &lt;BR /&gt;&lt;BR /&gt;&lt;/VALUE&gt;</description>
      <pubDate>Wed, 03 Dec 2008 14:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144515#M453309</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-12-03T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Password Life scripting -- modprpw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144516#M453310</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The 'modprpw' command applies to trusted systems.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; What is the commandline option for defining the mintm? I noticed in the man pages it is 86400? is that hours or minutes? &lt;BR /&gt;&lt;BR /&gt;According to the manpages, the values are in days, althogh the database retains them in seconds.  The value 86400 = (60*60*24) or the number of seconds in one day.&lt;BR /&gt;&lt;BR /&gt;To read input, you could do:&lt;BR /&gt;&lt;BR /&gt;while read UUNAME X&lt;BR /&gt;do&lt;BR /&gt;  /usr/lbin/modprpw -m mintm=90 ${UUNAME}&lt;BR /&gt;done &amp;lt; districtuser.txt&lt;BR /&gt;&lt;BR /&gt;...This assumes that each line of the input file contains a whitespace delimited account name as the first (perhaps only) field.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 03 Dec 2008 15:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144516#M453310</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-03T15:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Password Life scripting -- modprpw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144517#M453311</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Few updates along with James reply. You can use getprpw command to know the existing values for the user. There are two kind of policies.&lt;BR /&gt;&lt;BR /&gt;1.System level security policies. Applicable to all users.&lt;BR /&gt;&lt;BR /&gt;2.User level security policies. Applicable to specific user.&lt;BR /&gt;&lt;BR /&gt;# /usr/lbin/getprpw test&lt;BR /&gt;uid=101, bootpw=NO, audid=13, audflg=1, mintm=-1, maxpwln=-1, exptm=-1, lftm=-1,&lt;BR /&gt;.......&lt;BR /&gt;&lt;BR /&gt;If the values for exptm, lftm, mintm, and expwarn are equal to -1, this means that the user is using the system security policy options defined in SAM. Looking at this example:&lt;BR /&gt;&lt;BR /&gt;# /usr/lbin/getprpw test2&lt;BR /&gt;uid=102, bootpw=NO, audid=14, audflg=1, mintm=2, maxpwln=-1, exptm=30, lftm=50,&lt;BR /&gt;spwchg=Thu Nov 21 18:07:34 2002, upwchg=-1, acctexp=-1, llog=-1, expwarn=2, usrp&lt;BR /&gt;.......&lt;BR /&gt;&lt;BR /&gt;User test2 is not using the system security options (values are not equal to -1) exptm=30, lftm=50, mintm=2, expwarn=2 &lt;BR /&gt;&lt;BR /&gt;Changing the system security options in SAM will not have an impact on this user (test2).  But you can change user security options with SAM or from the command line.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These are the policies related to password aging.&lt;BR /&gt;&lt;BR /&gt;Password Aging Policies&lt;BR /&gt;exptm     ==&amp;gt;   Password Expiration Time (days)&lt;BR /&gt;expwarn   ==&amp;gt;   Password Expiration Warning Time (days)&lt;BR /&gt;lftm      ==&amp;gt;   Password Life Time (days)&lt;BR /&gt;mintm     ==&amp;gt;   Time Between Password Changes (days)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So whatever mention with modprpw will be in days.&lt;BR /&gt;&lt;BR /&gt;Note that you need to set "exptm" for password expiration not "mintm" . "mintm" means ,after "mintm" days the user can change the password again to either a new&lt;BR /&gt;password or back to the old password (Time Between Password Changes)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Dec 2008 15:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144517#M453311</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2008-12-03T15:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Password Life scripting -- modprpw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144518#M453312</link>
      <description>James, &lt;BR /&gt;&lt;BR /&gt;Yes, I will have a user list with the userid on each line. &lt;BR /&gt;&lt;BR /&gt;I would prefer to define it system wide, but we've got too many  hands in the cookie jar. Since we are only a service provider for the district we've got to adjust on a district by district basis.. &lt;BR /&gt;&lt;BR /&gt;That helps a lot. I will also be define each account to expire, at same time. &lt;BR /&gt;&lt;BR /&gt;So if I do the script it should look like this correct? (ADDING the "-e") &lt;BR /&gt;&lt;BR /&gt;To read input, you could do:&lt;BR /&gt;&lt;BR /&gt;while read UUNAME X&lt;BR /&gt;do&lt;BR /&gt;/usr/lbin/modprpw -e -m mintm=90 ${UUNAME}&lt;BR /&gt;done &amp;lt; districtuser.txt</description>
      <pubDate>Wed, 03 Dec 2008 16:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144518#M453312</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2008-12-03T16:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Password Life scripting -- modprpw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144519#M453313</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Regarding your last question of adding '-e' to the command to look like:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/modprpw -e -m mintm=90 ${UUNAME}&lt;BR /&gt;&lt;BR /&gt;...yes, according to the manpages that is legal.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Dec 2008 16:24:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144519#M453313</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-03T16:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Password Life scripting -- modprpw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144520#M453314</link>
      <description>Not sure why I didn't close this at the time.. Sorry.</description>
      <pubDate>Thu, 14 May 2009 14:47:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-life-scripting-modprpw/m-p/5144520#M453314</guid>
      <dc:creator>rmueller58</dc:creator>
      <dc:date>2009-05-14T14:47:01Z</dc:date>
    </item>
  </channel>
</rss>

