RE: (no subject)

"Gildersleeve, Mike" <[email protected]> Wed, 3 Jan 2007 08:38:16 -0500
Newsgroups gmane.linux.redhat.release.shrike
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============0011285311==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C72F3C.6C13AA50"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C72F3C.6C13AA50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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: [email protected] =
[mailto:[email protected]]On Behalf Of Harry, Hambi
Sent: Wednesday, January 03, 2007 7:25 AM
To: [email protected]
Subject: (no subject)


Hi All,
Is there a way to automatically execute a command when a user logs on to =
a linux?.
=20
Rgds.
=20
Harry.


------_=_NextPart_001_01C72F3C.6C13AA50
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2800.1555" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D005313413-03012007><FONT face=3DArial color=3D#0000ff =
size=3D2>Try a=20
cron job, every 5 min,&nbsp;that runs a script that runs the who command =
an grep=20
for the user if the value is returned then log it to a file or =
something.&nbsp;=20
Or run a script in their .login or .profile that dumps to a .log =
file.&nbsp;=20
Make sure that the permissions are set correct or they may wonder what =
the write=20
error is all about.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  [email protected] =
[mailto:[email protected]]<B>On=20
  Behalf Of </B>Harry, Hambi<BR><B>Sent:</B> Wednesday, January 03, 2007 =
7:25=20
  AM<BR><B>To:</B> [email protected]<BR><B>Subject:</B> (no=20
  subject)<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN class=3D520192312-03012007>Hi=20
  All,</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN class=3D520192312-03012007>Is =
there a way to=20
  automatically execute a command when a user logs on to a=20
  linux?.</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN=20
  class=3D520192312-03012007></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN=20
  class=3D520192312-03012007>Rgds.</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN=20
  class=3D520192312-03012007></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN=20
  =
class=3D520192312-03012007>Harry.</SPAN></FONT></DIV></BLOCKQUOTE></BODY>=
</HTML>

------_=_NextPart_001_01C72F3C.6C13AA50--


--===============0011285311==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
Shrike-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/shrike-list
--===============0011285311==--