Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.

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...