/etc/profile
From: Rob (rshahamat_at_hotmail.com)
Date: 10/31/03
- Next message: John D Groenveld: "Re: Solaris 9 on x86 Plateform"
- Previous message: Paul Coray: "Blastwave - Checksum errors ?"
- Next in thread: David Douthitt: "Re: /etc/profile"
- Reply: David Douthitt: "Re: /etc/profile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Oct 2003 10:47:48 -0500
I need to be notified whenever a user log on to my solaris machine. I plan
to put the following script in
/etc/profile
echo 'Subject: <ServerName>: ALERT - <username> login on:' `date` |
/usr/sbin/sendmail -s <email address>
Do you think if it works?
if so, right now I have some script in /etc/profile (i think its there by
default), should I just add the above script into the end of the profile?
What should i put for <username>? should I leave it as is?
thanks for any help.
Rob
- Next message: John D Groenveld: "Re: Solaris 9 on x86 Plateform"
- Previous message: Paul Coray: "Blastwave - Checksum errors ?"
- Next in thread: David Douthitt: "Re: /etc/profile"
- Reply: David Douthitt: "Re: /etc/profile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|