Find the answer to your Linux question:
Results 1 to 2 of 2
Hey Guys, I need a script to find users that have been inactive for 45 days. Any help would be greatly appreciated....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    20

    Linux Script


    Hey Guys, I need a script to find users that have been inactive for 45 days. Any help would be greatly appreciated.
    Last edited by terrywhitejr2000; 03-08-2013 at 05:25 PM.

  2. #2
    Just Joined!
    Join Date
    Sep 2012
    Location
    Nashville, TN
    Posts
    98
    You could write a shell script that will use the command
    Code:
    last <username>
    What this does is check the /var/log/wtmp file.
    You might want to look through the last manual as it has some pretty good parameters.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •