Hello All,
I need to design a script to get all the systems names(IP Addresses) logged in with a particular userid say 'xyz' from different terminals. This is to track the use of the particular userid and take action if it is being misused.
The script would accomplish the following steps:
1. the script should run at all times
2. it should find out who all are logged in with username say 'xyz' with the system names(IP Addresses)
3. it should constantly write that with timestamp to a file
4. after each 24 hours it should send a mail to a email address, say :
admin@abc.com with the file as attachment.
Any help will be much appreciated.
Thanks in Advance!!
with warm regards,
Himadri S Mazumder