Q. I have a requirement to check whose accounts are expired in Linux machine and send a mail to root user about the accounts. How can i achieve this in Linux?
Ans : Here is the script to check the account expires of the users in Linux
#Created on:09-02-2010 #Last modified:02-05-2010 #Purpose:To check the user account status in Linux #Author:Surendra Kumar Anne #The below command will grep all the users in shadow file #whose expiry … Continue Reading








