From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MWrK3-0000Ud-JE for garchives@archives.gentoo.org; Fri, 31 Jul 2009 12:34:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4B65E0809; Fri, 31 Jul 2009 12:34:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C5ECAE080B for ; Fri, 31 Jul 2009 12:34:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 5000066B98 for ; Fri, 31 Jul 2009 12:34:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.599 X-Spam-Level: X-Spam-Status: No, score=-3.599 required=5.5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rOJdwxsf-hsC for ; Fri, 31 Jul 2009 12:34:33 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 6CB4766AE6 for ; Fri, 31 Jul 2009 12:34:31 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MWrJa-00005f-Fu for gentoo-user@gentoo.org; Fri, 31 Jul 2009 12:34:26 +0000 Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Jul 2009 12:34:26 +0000 Received: from oneal by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Jul 2009 12:34:26 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Doug O'Neal Subject: [gentoo-user] Re: How send mail when user login on ssh or local ? Date: Fri, 31 Jul 2009 08:34:12 -0400 Organization: Delaware Biotechnology Institute Message-ID: References: <4A71B64D.9070201@litrixlinux.org> <87my6lddyb.fsf@newsguy.com> <200907310012.01627.alan.mckinnon@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: rain.gmane.org User-Agent: Thunderbird 2.0.0.22 (X11/20090710) In-Reply-To: <200907310012.01627.alan.mckinnon@gmail.com> Sender: news X-Archives-Salt: a014af5b-f0c0-4ca7-8967-bcadbdffd8a0 X-Archives-Hash: e853c29e3009e24954dff915dad96177 On 07/30/2009 06:12 PM, Alan McKinnon wrote: > On Friday 31 July 2009 00:05:16 Harry Putnam wrote: >>> Somebody know how I to so send mail with IP and Date/time when same >>> user login on shell ( remote or local ) ? >>> >>> I work with another admin's and I never told me when they access and >>> for what my server to do something, I try log but this can be erased >>> and maybe mail can help me about access and with this I can Ask about >>> this access. >> Do you really think the other admins would be erasing logs? > > That's what I was thinking. If you don't trust the other admin, then either: > > 1. You need to stop being the admin, or > 2. The other person needs to stop being the admin. > > This is not a technical problem, it does not need a technical solution. > It is a human problem and it needs a human solution. > > This sounds nasty. Of course it is nasty - it intended it to be. But it's also > true. In 25 years in this game, I have never found the above to be false. > Trying to do anything about it is a fool's game and down that path lies > madness. I agree 100% with Alan and it is a log-standing policy of mine that I will not share admin responsibilities with someone not on my staff. Until you put that in place however, you might consider setting the system syslog to log to an external system that only you control. The other admin can turn off logging but you will know when he's done so.