|
By inactive you mean users who haven't logged in for a specified amount of time? First that comes to mind is something like this
lastlog -t 10000 > temp1; lastlog -t 10 > temp2; diff temp1 temp2; rm temp1; rm temp2
It will show you the users who haven't logged in in 10 days. (10000 is just a "big period of time").
|