<?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: Monitoring user accounts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064054#M751284</link>
    <description>Hi Rob:&lt;BR /&gt;&lt;BR /&gt;Have a look at 'last'.  See the man pages.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 04 Sep 2003 19:29:18 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2003-09-04T19:29:18Z</dc:date>
    <item>
      <title>Monitoring user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064049#M751279</link>
      <description>I have a request from the security group at the company that I work for. They would like to get a daily report of users who have not accessed their accounts for the last 90 days. We are a HP-UX 11 i shop running our system in trusted mode. Is their an auditing tool within the OS that will do this? Are there any  freeware scripts ou there that would produce this information?</description>
      <pubDate>Thu, 04 Sep 2003 19:11:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064049#M751279</guid>
      <dc:creator>Rob McCarthy</dc:creator>
      <dc:date>2003-09-04T19:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064050#M751280</link>
      <description>Not sure on a trusted system but check out the "last" command</description>
      <pubDate>Thu, 04 Sep 2003 19:13:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064050#M751280</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-04T19:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064051#M751281</link>
      <description>You should be able to process the output of passwd -sa and produce a report yourself.&lt;BR /&gt;&lt;BR /&gt;Alternatively, you can add a line of code to /etc/profile and log accounts as they get used.&lt;BR /&gt;&lt;BR /&gt;echo $LOGNAME date &amp;gt;&amp;gt; /var/adm/userlog&lt;BR /&gt;&lt;BR /&gt;Then you can process this file against a user list from /etc/passwd and produce a list of users that have not logged in.&lt;BR /&gt;&lt;BR /&gt;Or, A. Clay Stevenson will post in a little perl script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 04 Sep 2003 19:15:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064051#M751281</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-04T19:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064052#M751282</link>
      <description>I have a script to do this, but I can't post it because of company restrictions.&lt;BR /&gt;&lt;BR /&gt;I can tell you what you need to do though:&lt;BR /&gt;&lt;BR /&gt;1. Get the GMT time in seconds. I wrote a hello world style C program that prints the result of the the time() system call to stdout.&lt;BR /&gt;&lt;BR /&gt;2. Loop through each user in the password file (I skip system accounts) and find the corresponding tcb entry. This can be done by grabbing the first char of the login name and then accssing the file in /tcb/files/auth/&lt;C&gt;/&lt;LOGIN&gt;&lt;BR /&gt;&lt;BR /&gt;The tcb file contains a field called u_suclog that lists the last successful login in GMT seconds since UNIX epoch.&lt;BR /&gt;&lt;BR /&gt;You then compare these two numbers.&lt;BR /&gt;&lt;BR /&gt;This is a very simplified overview, but it should get you started.&lt;BR /&gt;&lt;BR /&gt;I would say to use /usr/lbin/getprpw, but it outputs the date as a human readable string in the local timezone. That makes for harder numeric operations.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;/LOGIN&gt;&lt;/C&gt;</description>
      <pubDate>Thu, 04 Sep 2003 19:20:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064052#M751282</guid>
      <dc:creator>Brian Bergstrand</dc:creator>
      <dc:date>2003-09-04T19:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064053#M751283</link>
      <description>Brian's approach is basically sound. Rather than using C to get epoch seconds a far simpler method is simply:&lt;BR /&gt;NOW=$(perl -e 'print time')&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Sep 2003 19:25:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064053#M751283</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-04T19:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064054#M751284</link>
      <description>Hi Rob:&lt;BR /&gt;&lt;BR /&gt;Have a look at 'last'.  See the man pages.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 04 Sep 2003 19:29:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-user-accounts/m-p/3064054#M751284</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-09-04T19:29:18Z</dc:date>
    </item>
  </channel>
</rss>

