Re: [OT] Re: email notifications when users login

2006-09-28 Thread Vineet Kumar
* Horst Pflugstaedt ([EMAIL PROTECTED]) [060923 10:53]: > On Thu, Sep 21, 2006 at 03:37:56PM -0400, Morgan Walker wrote: > > > > Thanks Michelle that worked perfect. Is there an easy variable I could > > throw in there that you know off hand which would include the time > > (MM/DD/) as well?

Re: [OT] Re: email notifications when users login

2006-09-23 Thread Horst Pflugstaedt
On Thu, Sep 21, 2006 at 03:37:56PM -0400, Morgan Walker wrote: > > Thanks Michelle that worked perfect. Is there an easy variable I could > throw in there that you know off hand which would include the time > (MM/DD/) as well? Apart from the suggestions to use ${ date }, does the date of the

Re: [OT] Re: email notifications when users login

2006-09-23 Thread Dale Amon
On Thu, Sep 21, 2006 at 03:37:56PM -0400, Morgan Walker wrote: > > Thanks Michelle that worked perfect. Is there an easy variable I could > throw in there that you know off hand which would include the time > (MM/DD/) as well? TIME=`date +%m/%d/%Y` -- --

Re: [OT] Re: email notifications when users login

2006-09-22 Thread Bernd Eckenfels
In article <[EMAIL PROTECTED]> you wrote: > Thanks Michelle that worked perfect. Is there an easy variable I could > throw in there that you know off hand which would include the time > (MM/DD/) as well? NOW=`date` Gruss Bernd -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject o

Re: [OT] Re: email notifications when users login

2006-09-22 Thread Michelle Konzack
Am 2006-09-21 15:37:56, schrieb Morgan Walker: > > Thanks Michelle that worked perfect. Is there an easy variable I could > throw in there that you know off hand which would include the time > (MM/DD/) as well? 8<-- #/etc/profile L

RE: [OT] Re: email notifications when users login

2006-09-21 Thread Hubert Chan
On 2006-09-21 15:37:56 -0400 Morgan Walker <[EMAIL PROTECTED]> wrote: Thanks Michelle that worked perfect. Is there an easy variable I could throw in there that you know off hand which would include the time (MM/DD/) as well? echo "The User ${LOGNAME} has loged in on `date`." |\ ... (th

Re: [OT] Re: email notifications when users login

2006-09-21 Thread Freddie Cash
On Thursday 21 September 2006 12:37 pm, Morgan Walker wrote: > Thanks Michelle that worked perfect. Is there an easy variable I could > throw in there that you know off hand which would include the time > (MM/DD/) as well? $( date ) will add the current date and time. You can read the man pa

Re: [OT] Re: email notifications when users login

2006-09-21 Thread Stephen Gran
This one time, at band camp, Morgan Walker said: > > Thanks Michelle that worked perfect. Is there an easy variable I could > throw in there that you know off hand which would include the time > (MM/DD/) as well? echo "The User ${LOGNAME} has logged in at $(date -R)" |\ mail -s "user lo

RE: [OT] Re: email notifications when users login

2006-09-21 Thread Morgan Walker
PM To: debian-security@lists.debian.org Subject: [OT] Re: email notifications when users login Hi Morgan, Am 2006-09-18 15:34:30, schrieb Morgan Walker: > Hey guys, > > I was just wondering if there was a package/script out there that could > be used to notify the sys. admin every

[OT] Re: email notifications when users login

2006-09-21 Thread Michelle Konzack
Hi Morgan, Am 2006-09-18 15:34:30, schrieb Morgan Walker: > Hey guys, > > I was just wondering if there was a package/script out there that could > be used to notify the sys. admin every time a user logged into a debian > system. #/etc/profile echo "The User ${LOGNAME} has loged in." |\

[OT] Re: email notifications when users login

2006-09-21 Thread Michelle Konzack
Am 2006-09-18 15:44:26, schrieb Gregory Arntson: > Let's try not hitting the enter key this time... Morgan, if for examples > all of the users use the bash shell you could create a .bashrc that and the > end of everything would notify the intended admins when the person logged > in. From there all

Re: email notifications when users login

2006-09-19 Thread Marco Müller
Dave Carrigan wrote: On Monday 18 September 2006 15:08, Marco Müller wrote: IFS=" " nail -s "Login to by $USER" root < . $ where 'root' is the user this Mail is being mailed to. Nail is a mailer like mail and expects a dot to commit EOM. Just to nitpick, but your syntax of "nail ... <." is

Re: email notifications when users login

2006-09-19 Thread Dave Carrigan
On Monday 18 September 2006 15:08, Marco Müller wrote: > IFS=" > " > nail -s "Login to by $USER" root < . > $ > > > where 'root' is the user this Mail is being mailed to. Nail is a mailer > like mail and expects a dot to commit EOM. Just to nitpick, but your syntax of "nail ... <." is not sendin

Re: email notifications when users login

2006-09-19 Thread Izak Burger
On 9/18/06, Morgan Walker <[EMAIL PROTECTED]> wrote: I was just wondering if there was a package/script out there that could be used to notify the sys. admin every time a user logged into a debian system. The simplest two ways, as was already noted, is to add something to /etc/profile or some o

Re: email notifications when users login

2006-09-18 Thread Marco Müller
Morgan Walker wrote: Hey guys, Hi, I was just wondering if there was a package/script out there that could be used to notify the sys. admin every time a user logged into a debian system. A very simple script to notify me when users log on: $ cat /etc/ssh/sshrc #!/bin/bash IFS=" " nail -s

Re: email notifications when users login

2006-09-18 Thread R. W. Rodolico
I have a perl script that goes into daemon mode using log::tail that notifies me via e-mail whenever anyone logs in from the command line. It is open to anyone who wants it. Just let me know if you do. I think I even commented it. Using log::tail it uses very few resources. Rod On Mon, September

RE: email notifications when users login

2006-09-18 Thread Morgan Walker
, 2006 3:46 PM To: Morgan Walker Cc: debian-security@lists.debian.org Subject: Re: email notifications when users login I'm not quite sure if this is the right list to ask that kind of question, but, there is a package name logcheck, it send email for everything that happend on system logs

Re: email notifications when users login

2006-09-18 Thread Manuel García
I'm not quite sure if this is the right list to ask that kind of question, but, there is a package name logcheck, it send email for everything that happend on system logs, and anything else you said, also you can use perl-like regular expresion to filter the email that logcheck sends to you, read

Re: email notifications when users login

2006-09-18 Thread Gregory Arntson
Let's try not hitting the enter key this time...  Morgan, if for examples all of the users use the bash shell you could create a .bashrc that and the end of everything would notify the intended admins when the person logged in. From there all you would need to do is to copy it to all of the home di

Re: email notifications when users login

2006-09-18 Thread Gregory Arntson
Morgan,On 9/18/06, Morgan Walker <[EMAIL PROTECTED]> wrote: Hey guys,   I was just wondering if there was a package/script out there that could be used to notify the sys. admin every time a user logged into a debian system.   Thanks in advance,   Morgan   Morgan Walker

email notifications when users login

2006-09-18 Thread Morgan Walker
Hey guys,   I was just wondering if there was a package/script out there that could be used to notify the sys. admin every time a user logged into a debian system.   Thanks in advance,   Morgan   Morgan Walker Systems Administrator/Engineer M•CAM, Inc. Omni Business Center 210 Ri