<?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: Find inactive users in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718589#M62469</link>
    <description>Don't use finger since it is a danger command for system security, one solution is implement C2 Trusted System, and turn on auditing system, you can get those info from logs.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 07 May 2002 14:10:27 GMT</pubDate>
    <dc:creator>Victor_5</dc:creator>
    <dc:date>2002-05-07T14:10:27Z</dc:date>
    <item>
      <title>Find inactive users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718585#M62465</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am tying to find inactive users or the users never login, I think finger command or -mtime can help, so I can remove those inactive users...Is anyone have a script to get this done.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 07 May 2002 13:58:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718585#M62465</guid>
      <dc:creator>Anthony khan</dc:creator>
      <dc:date>2002-05-07T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find inactive users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718586#M62466</link>
      <description>Hi Anthony:&lt;BR /&gt;&lt;BR /&gt;A couple of tricks help.  You can use 'find' to traverse the $HOME directories of the users looking at the last access date for their '.profile' [assuming their default shell is the Posix or ksh shell] and collect a list for culling.&lt;BR /&gt;&lt;BR /&gt;You can examine the /var/adm/wtmp file (if you keep it) using 'last' and compare its contents to /etc/passwd in a fashion which returns a list of users who do *not* appear in 'wtmp'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 07 May 2002 14:03:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718586#M62466</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-07T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find inactive users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718587#M62467</link>
      <description>Anthony,&lt;BR /&gt;&lt;BR /&gt;Convert your system to trusted, and set passwd expire and inactivity.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 07 May 2002 14:07:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718587#M62467</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-05-07T14:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Find inactive users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718588#M62468</link>
      <description>Hi&lt;BR /&gt;You can use who to find old logins.&lt;BR /&gt;#who -a |grep old&lt;BR /&gt;then run ps -e to find out that pid if you can means that login is old you can remove it.&lt;BR /&gt;&lt;BR /&gt;for example&lt;BR /&gt;#who -a |grep old&lt;BR /&gt;sachin    ttyp1        Jan  8 09:47  old    8071  10.20.46.71:0.0&lt;BR /&gt;#ps -e |grep 8071&lt;BR /&gt; 8071 ttyp1     0:00 csh&lt;BR /&gt;&lt;BR /&gt;means that login is been inactive for logtime and it is been old. &lt;BR /&gt;#kill 8071&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Tue, 07 May 2002 14:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718588#M62468</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2002-05-07T14:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find inactive users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718589#M62469</link>
      <description>Don't use finger since it is a danger command for system security, one solution is implement C2 Trusted System, and turn on auditing system, you can get those info from logs.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 May 2002 14:10:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718589#M62469</guid>
      <dc:creator>Victor_5</dc:creator>
      <dc:date>2002-05-07T14:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Find inactive users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718590#M62470</link>
      <description>Hi Anthony,&lt;BR /&gt;&lt;BR /&gt;Do you know the command "last"?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Tue, 07 May 2002 14:14:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718590#M62470</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-05-07T14:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find inactive users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718591#M62471</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;first, get list of users on the box:&lt;BR /&gt;cat /etc/passwd | awk '{FS=":";print $1}' &amp;gt;/tmp/list_users&lt;BR /&gt;&lt;BR /&gt;Next, run last command  and see when they logged in last on the system, somthing like:&lt;BR /&gt;while read -r name&lt;BR /&gt;do&lt;BR /&gt;  last $name | head -1  &amp;gt;&amp;gt;/tmp/user_activity&lt;BR /&gt;done &lt;BR /&gt;Then, decide on what sort of cut of date you are using for inactivity.  If it is for users not logged in this year, do a simple:&lt;BR /&gt;grep "2001" /tmp/list_users &amp;gt; inactive_users&lt;BR /&gt;&lt;BR /&gt;BAsed on what you are looking for, you can use greap search pattern accordingly.&lt;BR /&gt;&lt;BR /&gt;Finally to remove those users run &lt;BR /&gt;userdel  on the list of inactive users.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj</description>
      <pubDate>Tue, 07 May 2002 14:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-inactive-users/m-p/2718591#M62471</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2002-05-07T14:25:03Z</dc:date>
    </item>
  </channel>
</rss>

