Operating System - Tru64 Unix
1753498 Members
4852 Online
108794 Solutions
New Discussion юеВ

Re: Finding Unused accounts

 
Jean-Pierre Denis
Valued Contributor

Finding Unused accounts

Hi,

I need to find all accounts that have not been used since the 1st of August.

I could finger every user but there is around 1000 users on the box and issuing finger for every user would be time consuming.

Is there an easy way to find them ?
Any tricks or hint would be great !

Thanks,
JP
Open your Mind and use Open Source software...
4 REPLIES 4
Ralf Puchner
Honored Contributor

Re: Finding Unused accounts

try the "last" command
Help() { FirstReadManual(urgently); Go_to_it;; }
Ann Majeske
Honored Contributor

Re: Finding Unused accounts

Have you considered enabling Enhanced Security? It wouldn't help this time, but it would help if you needed to do something like this in the future. Check out the Security manual.
Spider Boardman
Advisor

Re: Finding Unused accounts

Feel free to try my perl script for solving this problem: http://users.rcn.com/spiderb/sec/llog.txt

Usage for what you're after:
llog -t 168

The actual value to the -t option will vary depending on when you run it, of course, to be enough days ago for 1 August to be the cut-off.
Jean-Pierre Denis
Valued Contributor

Re: Finding Unused accounts


Thanks everyone for your help !

JP
Open your Mind and use Open Source software...