<?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 expiry notification script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-notification-script/m-p/4594971#M375307</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;passwd -sa &lt;BR /&gt;&lt;BR /&gt;Generates a pretty nice report.&lt;BR /&gt;&lt;BR /&gt;You can also configure the system to notify users X number of days before expiration. See the man page for passwd for details.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 04 Mar 2010 16:12:27 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2010-03-04T16:12:27Z</dc:date>
    <item>
      <title>Password expiry notification script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-notification-script/m-p/4594969#M375305</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt; I am looking for password aging script which notify through email. O.S version is "HP-UX B.11.31 U ia64".</description>
      <pubDate>Thu, 04 Mar 2010 11:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-notification-script/m-p/4594969#M375305</guid>
      <dc:creator>srsatya</dc:creator>
      <dc:date>2010-03-04T11:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Password expiry notification script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-notification-script/m-p/4594970#M375306</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Check the folowing forum entry:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1267714548280+28353475&amp;amp;threadId=1403117" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1267714548280+28353475&amp;amp;threadId=1403117&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt; - Thomas</description>
      <pubDate>Thu, 04 Mar 2010 14:57:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-notification-script/m-p/4594970#M375306</guid>
      <dc:creator>Thomas Vogt (CH)</dc:creator>
      <dc:date>2010-03-04T14:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Password expiry notification script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-notification-script/m-p/4594971#M375307</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;passwd -sa &lt;BR /&gt;&lt;BR /&gt;Generates a pretty nice report.&lt;BR /&gt;&lt;BR /&gt;You can also configure the system to notify users X number of days before expiration. See the man page for passwd for details.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 04 Mar 2010 16:12:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-notification-script/m-p/4594971#M375307</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-03-04T16:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Password expiry notification script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-notification-script/m-p/4594972#M375308</link>
      <description>Following is a crude one. It works on Solaris running nis+&lt;BR /&gt;It is set to run once each night via cron.&lt;BR /&gt;&lt;BR /&gt;more check_passwd_expiration&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;#rsj 01/16/2003&lt;BR /&gt;#this script is intended to be ran from a cron job.&lt;BR /&gt;#It will email user warnings when their passwd is getting&lt;BR /&gt;#close to expiration.&lt;BR /&gt;&lt;BR /&gt;mail_msg()&lt;BR /&gt;{&lt;BR /&gt;rmail $1 &amp;lt;&amp;lt; EOF&lt;BR /&gt;Subject: $2&lt;BR /&gt;From: kishore&lt;BR /&gt;$1 $2&lt;BR /&gt;EOF&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;NDAYS=`/usr/bin/perl -e 'printf("%d\n", time / (3600 * 24))'`&lt;BR /&gt;echo NDAYS = $NDAYS&lt;BR /&gt;&lt;BR /&gt;for user in `niscat -M passwd.org_dir | awk -F: '{printf("%s:%s:%s:%s:%s:%s\n", $1, $2, $8, $9, $10, $11)}'`&lt;BR /&gt;do&lt;BR /&gt;#echo user = $user&lt;BR /&gt;name=`echo $user | cut -d: -f1`&lt;BR /&gt;passwd=`echo $user | cut -d: -f2`&lt;BR /&gt;lastchg=`echo $user | cut -d: -f3`&lt;BR /&gt;min=`echo $user | cut -d: -f4`&lt;BR /&gt;max=`echo $user | cut -d: -f5`&lt;BR /&gt;warn=`echo $user | cut -d: -f6`&lt;BR /&gt;if [ "$max" != -1 -a "$passwd" != "*LK*" ]; then&lt;BR /&gt;if [ "$max" = "" ]; then&lt;BR /&gt;echo "invalid value of max for $name"&lt;BR /&gt;max=-1&lt;BR /&gt;fi&lt;BR /&gt;if [ "$lastchg" = "" ]; then&lt;BR /&gt;echo "invalid value of lastchg for $name"&lt;BR /&gt;lastchg=0&lt;BR /&gt;fi&lt;BR /&gt;#echo info = $name:$lastchg:$min:$max:$warn:$delta&lt;BR /&gt;delta=`expr $NDAYS - $lastchg`&lt;BR /&gt;expire=`expr $max - $delta`&lt;BR /&gt;if [ $expire -le 0 ]; then&lt;BR /&gt;echo info = $name:$lastchg:$min:$max:$warn:$delta&lt;BR /&gt;echo " Warning your passwd has expired"&lt;BR /&gt;mail_msg $name "Your passwd has expired"&lt;BR /&gt;elif [ $expire -le $warn ]; then&lt;BR /&gt;echo info = $name:$lastchg:$min:$max:$warn:$delta&lt;BR /&gt;echo " Warning passwd will expire in $expire days"&lt;BR /&gt;mail_msg $name "Warning your passwd expires in $expire days"&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;#else&lt;BR /&gt;#echo no expire for $name:$lastchg:$min:$max:$warn&lt;BR /&gt;#fi&lt;BR /&gt;done</description>
      <pubDate>Fri, 05 Mar 2010 01:51:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-expiry-notification-script/m-p/4594972#M375308</guid>
      <dc:creator>viswanathkishore</dc:creator>
      <dc:date>2010-03-05T01:51:01Z</dc:date>
    </item>
  </channel>
</rss>

