<?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 aging.. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942977#M412031</link>
    <description>Thanks.</description>
    <pubDate>Wed, 28 Dec 2005 12:39:19 GMT</pubDate>
    <dc:creator>Roy Colica</dc:creator>
    <dc:date>2005-12-28T12:39:19Z</dc:date>
    <item>
      <title>User aging..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942972#M412026</link>
      <description>All,&lt;BR /&gt;do you think is possible to match this requirement? If a user remains unused for 60 consecutive days it must be disabled. If no authorised request for reinstatement is received within a further 30 consecutive days the userid must be deleted.&lt;BR /&gt;I think the first can be done with HP-UX trusted, the second? Do you think I've to implement something or could be free?&lt;BR /&gt;Can you please help? Thanks.&lt;BR /&gt;Roy</description>
      <pubDate>Fri, 25 Nov 2005 05:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942972#M412026</guid>
      <dc:creator>Roy Colica</dc:creator>
      <dc:date>2005-11-25T05:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: User aging..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942973#M412027</link>
      <description>Not possible without some scripting. Even the first requirement will also require some scripts to be run and and decide user expiry and disable it. Take it further and delete it as per requirement.</description>
      <pubDate>Fri, 25 Nov 2005 05:46:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942973#M412027</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-11-25T05:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: User aging..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942974#M412028</link>
      <description>Yes. First requirement you have to go with trusted system (If you want to have normal hp-ux manner).&lt;BR /&gt;&lt;BR /&gt;Two more ways to achive first requirement:&lt;BR /&gt;&lt;BR /&gt;i) last | grep 'username'&lt;BR /&gt;gives last successful login. Calculate day difference and remove the user.&lt;BR /&gt;&lt;BR /&gt;ii) You can play with /etc/profile file to achive this as,&lt;BR /&gt;&lt;BR /&gt;  # mkdir /var/users/&lt;BR /&gt;  # Edit /etc/profile as,&lt;BR /&gt;   echo "`date +'%d %m %y'`" &amp;gt; /var/users/${LOGNAME}&lt;BR /&gt;&lt;BR /&gt;You can compare the contents in /var/users with current date difference and remove the user account with userdel.&lt;BR /&gt;&lt;BR /&gt;Second Requirement:&lt;BR /&gt;&lt;BR /&gt;Use last and lastb command to achive this.&lt;BR /&gt;&lt;BR /&gt;# last | grep 'username'&lt;BR /&gt;# lastb | grep 'username'&lt;BR /&gt;&lt;BR /&gt;get the time stamp and produce the latest one in both. See the time stamp difference with current date and remove user id.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Nov 2005 05:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942974#M412028</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-25T05:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: User aging..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942975#M412029</link>
      <description>Refer this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=855955" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=855955&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To get a date difference.&lt;BR /&gt;&lt;BR /&gt;DAY1=$(cat /var/users/${LOGNAME}&lt;BR /&gt;DAY2=$(date +'%d/%m/%y')&lt;BR /&gt;typeset -i DIFF=$(( $(caljd.sh ${DT2} - $(caljd.sh ${DT1}) ))&lt;BR /&gt;if [[ ${DIFF} -gt 60 ]]&lt;BR /&gt;then&lt;BR /&gt;  userdel  &lt;USER&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/USER&gt;</description>
      <pubDate>Fri, 25 Nov 2005 06:03:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942975#M412029</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-25T06:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: User aging..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942976#M412030</link>
      <description>Shalom Roy,&lt;BR /&gt;&lt;BR /&gt;Its possible and the best way to go is trusted system. This conversion makes teh 60 day rule easy to enforce.&lt;BR /&gt;&lt;BR /&gt;The second 30 day until delete is probably better done by policy. When an account becomes disabled, its status is changed and this can be accounted for.&lt;BR /&gt;&lt;BR /&gt;You can build a little report with passwd -sa and probably get your user list.&lt;BR /&gt;&lt;BR /&gt;Take a look at that report output and see if it might be helpful.&lt;BR /&gt;&lt;BR /&gt;Surely this could be done for free, because the best solution is a scripted solution.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 Nov 2005 06:11:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942976#M412030</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-25T06:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: User aging..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942977#M412031</link>
      <description>Thanks.</description>
      <pubDate>Wed, 28 Dec 2005 12:39:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-aging/m-p/4942977#M412031</guid>
      <dc:creator>Roy Colica</dc:creator>
      <dc:date>2005-12-28T12:39:19Z</dc:date>
    </item>
  </channel>
</rss>

