BashScripts.org
http://bashscripts.org/forum/

Console login script
http://bashscripts.org/forum/viewtopic.php?f=8&t=1421
Page 1 of 1

Author:  woodson2 [ Wed Jun 29, 2011 11:20 am ]
Post subject:  Console login script

Hello,

I'm looking for a script that can track user logins from the CONSOLE only on a RHEL 5.5 system and e-mail me pertinent information about the user. I already have a working script for SSH logins that e-mails me the username/date/time and the place from which the user logs in.

Author:  canit0 [ Fri Jul 08, 2011 9:32 pm ]
Post subject:  Re: Console login script

Why can't you modify this script to do the same for console logins?

Author:  jeo [ Mon Jul 11, 2011 10:38 am ]
Post subject:  Re: Console login script

Hi woodson2!

How does your SSH reporting script detect user logins? It should just be a matter of detecting a login and differentiating based on the TTY type. Can you show us what you've got for SSH? Maybe we can help tweak it do report both SSH and console logins!

Page 1 of 1 All times are UTC - 6 hours
© 2000, 2002, 2005, 2007 phpBB Group • http://www.phpbb.com