<?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 Inactive accounts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875826#M744657</link>
    <description>My environment consists of both 11.0 and 11.i systems. In an "untrusted" environment, how can I track inactive user accounts?  &lt;BR /&gt;Thanks,&lt;BR /&gt;Joan</description>
    <pubDate>Thu, 16 Dec 2004 09:59:09 GMT</pubDate>
    <dc:creator>Joan Blais</dc:creator>
    <dc:date>2004-12-16T09:59:09Z</dc:date>
    <item>
      <title>Inactive accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875826#M744657</link>
      <description>My environment consists of both 11.0 and 11.i systems. In an "untrusted" environment, how can I track inactive user accounts?  &lt;BR /&gt;Thanks,&lt;BR /&gt;Joan</description>
      <pubDate>Thu, 16 Dec 2004 09:59:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875826#M744657</guid>
      <dc:creator>Joan Blais</dc:creator>
      <dc:date>2004-12-16T09:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inactive accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875827#M744658</link>
      <description>I have a perl script that reads the output of "last" and reads in /etc/passwd. It then dumps out a report of all the accounts and the last logins.&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 16 Dec 2004 10:02:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875827#M744658</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-12-16T10:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inactive accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875828#M744659</link>
      <description>Hi Joan,&lt;BR /&gt;&lt;BR /&gt;Check Matthew F. Carr answer in below thread.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=150881" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=150881&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 16 Dec 2004 10:03:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875828#M744659</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2004-12-16T10:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Inactive accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875829#M744660</link>
      <description>Here is the script if you are interested-&lt;BR /&gt; &lt;BR /&gt;#!/usr/local/bin/perl&lt;BR /&gt;# Show last logins for every user in /etc/passwd&lt;BR /&gt;#&lt;BR /&gt;open(LASTLOGIN,"last|") || die "Can not run 'last' command\n";&lt;BR /&gt;while (&lt;LASTLOGIN&gt;) {&lt;BR /&gt;  next if $_ eq "";&lt;BR /&gt;  if (/^wtmp begin/) {$begin=$_ ; next};&lt;BR /&gt;  ($name,$tty,$date)=/(\S+)\s+(\S+)\s+(\S+\s+\S+\s+\S+)/;&lt;BR /&gt;  $user{$name}=$date unless $user{$name};&lt;BR /&gt;}&lt;BR /&gt;print $begin;&lt;BR /&gt;close(LASTLOGIN);&lt;BR /&gt;open(PASSWD,"/etc/passwd") || die "Can not open '/etc/passwd'\n";&lt;BR /&gt;while (&lt;PASSWD&gt;) {&lt;BR /&gt;  next if /^\+/;&lt;BR /&gt;  ($name,$rest)=split(":");&lt;BR /&gt;  $user{$name}="**NOT USED**" unless $user{$name};&lt;BR /&gt;}&lt;BR /&gt;foreach $name (sort keys(%user)) {&lt;BR /&gt;  printf "%-10s %s\n",$name,$user{$name};&lt;BR /&gt;}&lt;BR /&gt;&lt;/PASSWD&gt;&lt;/LASTLOGIN&gt;</description>
      <pubDate>Thu, 16 Dec 2004 10:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875829#M744660</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-12-16T10:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inactive accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875830#M744661</link>
      <description>Thank you for the scripts.&lt;BR /&gt;Joan</description>
      <pubDate>Tue, 15 Feb 2005 15:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inactive-accounts/m-p/4875830#M744661</guid>
      <dc:creator>Joan Blais</dc:creator>
      <dc:date>2005-02-15T15:46:44Z</dc:date>
    </item>
  </channel>
</rss>

