I need to monitor the active users at present from my system. I have around 300 users in the password file. And I am sure around 100 of them may be old users (means they are either not using my system or they already left the company). I need to track
a- how many current users are there on my system this month?
b- how many were there in the last month?
c- how many were there in month before that?
Because we have file system problem time to time we compress our wtmp & btmp files.
Please give a better solution to solve this problem.
Thank you very much in advance for the unix wizards.