<?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 Scripting password expiration. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-password-expiration/m-p/4011640#M737831</link>
    <description>I need to set a list of users password expiration and I am having trouble.  Can someone show me possibly how to take a list of users in a file and set their expiration to 90 days? &lt;BR /&gt;&lt;BR /&gt;I am using /bin/passwd -x 90 user.  Should I worry about min password age?</description>
    <pubDate>Fri, 01 Jun 2007 09:53:13 GMT</pubDate>
    <dc:creator>cuzfu</dc:creator>
    <dc:date>2007-06-01T09:53:13Z</dc:date>
    <item>
      <title>Scripting password expiration.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-password-expiration/m-p/4011640#M737831</link>
      <description>I need to set a list of users password expiration and I am having trouble.  Can someone show me possibly how to take a list of users in a file and set their expiration to 90 days? &lt;BR /&gt;&lt;BR /&gt;I am using /bin/passwd -x 90 user.  Should I worry about min password age?</description>
      <pubDate>Fri, 01 Jun 2007 09:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-password-expiration/m-p/4011640#M737831</guid>
      <dc:creator>cuzfu</dc:creator>
      <dc:date>2007-06-01T09:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting password expiration.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-password-expiration/m-p/4011641#M737832</link>
      <description>#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;typeset INFILE="/xxx/mylistofusers"&lt;BR /&gt;typeset U=""&lt;BR /&gt;typeset EXPTIME=90&lt;BR /&gt;typeset MINTIME=7&lt;BR /&gt;typeset -i STAT=0&lt;BR /&gt;cat "${INFILE}" | while read U&lt;BR /&gt;  do&lt;BR /&gt;     &lt;BR /&gt;     /bin/passwd -x ${EXPTIME} -n ${MINTIME} ${U}&lt;BR /&gt;     STAT=${?}&lt;BR /&gt;     if [[ ${STAT} -ne 0 ]]&lt;BR /&gt;       then&lt;BR /&gt;          echo "Passwd failed on ${U}; status  ${STAT}." &amp;gt;&amp;amp;2&lt;BR /&gt;       fi&lt;BR /&gt;  done&lt;BR /&gt;exit ${STAT}&lt;BR /&gt;&lt;BR /&gt;---------------------------------------&lt;BR /&gt;&lt;BR /&gt;Normally it is a good idea to set minimum time between passwords because suppose that your policy says that passwords may not be&lt;BR /&gt;resued. If your set maximum password history depth to 10, the user will easily be able to use the same password by cycling through 10 passwords on the same day. However if mintime is set to 7 then the user could not do this until 70 days have passed.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jun 2007 10:03:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-password-expiration/m-p/4011641#M737832</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-06-01T10:03:17Z</dc:date>
    </item>
  </channel>
</rss>

