  | | | Subject: Re: (no subject) another thought | Subject: Re: (no subject) another thought 2007-01-03 - By JohnH
Back This reminded me of something else. I used to have a basic program in dos that would log the time and date that someone started the computer. Is there such a thing in Linux and could it show who as well as when?
JohnH pctech@(protected) -- -- Original Message -- -- From: Gildersleeve, Mike To: Discussion of Red Hat Linux 9 (Shrike) Sent: Wednesday, January 03, 2007 7:38 AM Subject: RE: (no subject)
Try a cron job, every 5 min, that runs a script that runs the who command an grep for the user if the value is returned then log it to a file or something. Or run a script in their .login or .profile that dumps to a .log file. Make sure that the permissions are set correct or they may wonder what the write error is all about. -- --Original Message-- -- From: shrike-list-bounces@(protected) [mailto:shrike-list-bounces@(protected) ]On Behalf Of Harry, Hambi Sent: Wednesday, January 03, 2007 7:25 AM To: shrike-list@(protected) Subject: (no subject)
Hi All, Is there a way to automatically execute a command when a user logs on to a linux?.
Rgds.
Harry.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----
-- Shrike-list mailing list Shrike-list@(protected) https://www.redhat.com/mailman/listinfo/shrike-list
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----
No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.3/614 - Release Date: 1/2/2007 2:58 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2900.2995" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>This reminded me of something else. I used to have a basic program in dos that would log the time and date that someone started the computer. Is there such a thing in Linux and could it show who as well as when?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>JohnH</FONT></DIV> <DIV><FONT face=Arial size=2><A href="mailto:pctech@(protected)">pctech@(protected)</A></FONT></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=mgilder@(protected) href="mailto:mgilder@(protected)">Gildersleeve, Mike</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=shrike-list@(protected) href="mailto:shrike-list@(protected)">Discussion of Red Hat Linux 9 (Shrike)</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, January 03, 2007 7:38 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: (no subject)</DIV> <DIV><BR></DIV> <DIV><SPAN class=005313413-03012007><FONT face=Arial color=#0000ff size=2>Try a cron job, every 5 min, that runs a script that runs the who command an grep for the user if the value is returned then log it to a file or something. Or run a script in their .login or .profile that dumps to a .log file. Make sure that the permissions are set correct or they may wonder what the write error is all about.</FONT></SPAN></DIV> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2>-- --Original Message-- --<BR><B>From:</B> shrike-list-bounces@(protected) [mailto:shrike-list-bounces@(protected)]<B>On Behalf Of </B>Harry, Hambi<BR><B>Sent:</B> Wednesday, January 03, 2007 7:25 AM<BR><B>To:</B> shrike-list@(protected)<BR><B>Subject:</B> (no subject)<BR><BR></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=520192312-03012007>Hi All,</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=520192312-03012007>Is there a way to automatically execute a command when a user logs on to a linux?.</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=520192312-03012007></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=520192312-03012007>Rgds.</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=520192312-03012007></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=520192312-03012007>Harry.</SPAN></FONT></DIV></BLOCKQUOTE> <P> <HR>
<P></P>-- <BR>Shrike-list mailing list<BR>Shrike-list@(protected)<BR>https://www.redhat.com/mailman/listinfo /shrike-list <P> <HR>
<P></P>No virus found in this incoming message.<BR>Checked by AVG Free Edition.<BR>Version: 7.5.432 / Virus Database: 268.16.3/614 - Release Date: 1/2/2007 2:58 PM<BR></BLOCKQUOTE></BODY></HTML>
-- Shrike-list mailing list Shrike-list@(protected) https://www.redhat.com/mailman/listinfo/shrike-list
|
|
 |