Date: Wed, 24 Jul 2002 21:41:15 -0400 From: "sagacious" <sagacious@unixhideout.com> To: <freebsd-questions@freebsd.org> Subject: Watching users Message-ID: <000001c2337c$5db576d0$0a01a8c0@MIKESBOX>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hello list, I need to watch either via an open terminal, using "Watch" or some other method. I remember seeing fortune freebsd-tips saying how if I used tcsh I could type a command that would tell me everyone who logs in and out of my system. Can you please tell me how I can have a daemon or prog running that will do nothing except log logins via sshd and ftp to a file, or better yet, email me when someone logs in? I have watch installed and I am about to hit the manpage but I posted here first because I don't think watch will do what I want it to. The ideal thing would be for "it" to email me whenever someone logs in or out. Thanks. sagacious (Mike) Network administrator The unixhideout network http://www.unixhideout.com [-- Attachment #2 --] <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="cid:filelist.xml@01C2335A.D6174E40"> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:"Lucida Console"; panose-1:2 11 6 9 4 5 4 2 2 4; mso-font-charset:0; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:-2147482993 6144 0 0 31 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} span.EmailStyle17 {mso-style-type:personal-compose; mso-style-noshow:yes; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:"Lucida Console"; mso-ascii-font-family:"Lucida Console"; mso-hansi-font-family:"Lucida Console"; color:black; font-weight:normal; font-style:normal; text-decoration:none; text-underline:none; text-decoration:none; text-line-through:none;} span.SpellE {mso-style-name:""; mso-spl-e:yes;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--> </head> <body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'> <div class=Section1> <p class=MsoNormal><font size=2 color=black face="Lucida Console"><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>Hello list,<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Lucida Console"><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Lucida Console"><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'><span style='mso-spacerun:yes'> </span>I need to watch either via an open terminal, using “Watch” or some other method. I remember seeing fortune <span class=SpellE>freebsd</span>-tips saying how if I used <span class=SpellE>tcsh</span> I could type a command that would tell me everyone who logs in and out of my system. Can you please tell me how I can have a daemon or <span class=SpellE>prog</span> running that will do nothing except log logins via <span class=SpellE>sshd</span> and ftp to a file, or better yet, email me when someone logs in? I have watch installed and I am about to hit the <span class=SpellE>manpage</span> but I posted here first because I don’t think watch will do what I want it to. The ideal thing would be for “it” to email me whenever someone logs in or out. Thanks.<o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Lucida Console"><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'><o:p> </o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Lucida Console"><span style='font-size:10.0pt;font-family:"Lucida Console";color:black;mso-no-proof: yes'>sagacious (Mike)</span></font><font color=black><span style='color:black; mso-no-proof:yes'><o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Lucida Console"><span style='font-size:10.0pt;font-family:"Lucida Console";color:black;mso-no-proof: yes'>Network administrator</span></font><font color=black><span style='color:black;mso-no-proof:yes'><o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Lucida Console"><span style='font-size:10.0pt;font-family:"Lucida Console";color:black;mso-no-proof: yes'>The unixhideout network</span></font><font color=black><span style='color:black;mso-no-proof:yes'><o:p></o:p></span></font></p> <p class=MsoNormal><font size=2 color=black face="Lucida Console"><span style='font-size:10.0pt;font-family:"Lucida Console";color:black;mso-no-proof: yes'><a href="http://www.unixhideout.com">http://www.unixhideout.com</a></span></font><o:p></o:p></p> <p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p> </div> </body> </html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001c2337c$5db576d0$0a01a8c0>
