Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: Linux Script

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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 04:25 PM.

  2. #2
    Linux Newbie
    Join Date
    Sep 2012
    Nashville, TN
    You could write a shell script that will use the command
    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