From owner-freebsd-questions@FreeBSD.ORG Tue Feb 12 12:32:57 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1C996C1B for ; Tue, 12 Feb 2013 12:32:57 +0000 (UTC) (envelope-from matthias@d2ux.org) Received: from mail.s1.d2ux.org (static.209.96.9.5.clients.your-server.de [5.9.96.209]) by mx1.freebsd.org (Postfix) with ESMTP id B2DBBBDA for ; Tue, 12 Feb 2013 12:32:56 +0000 (UTC) Received: from mail.s1.d2ux.org (mail [10.0.0.3]) by mail.s1.d2ux.org (Postfix) with ESMTP id EF40D84F2588 for ; Tue, 12 Feb 2013 13:24:57 +0100 (CET) Received: from mail.s1.d2ux.org ([10.0.0.3]) by mail.s1.d2ux.org (mail.s1.d2ux.org [10.0.0.3]) (amavisd-new, port 10024) with ESMTP id cKWxfhXqXhwv for ; Tue, 12 Feb 2013 13:24:52 +0100 (CET) Received: from www.s1.d2ux.org (unknown [10.0.0.4]) by mail.s1.d2ux.org (Postfix) with ESMTP id A369084F2586 for ; Tue, 12 Feb 2013 13:24:52 +0100 (CET) Received: from 188.92.33.51 ([188.92.33.51]) by d2ux.org (Horde Framework) with HTTP; Tue, 12 Feb 2013 13:24:52 +0100 Date: Tue, 12 Feb 2013 13:24:52 +0100 Message-ID: <20130212132452.Horde.EO28CfwdHQDobBCC5akbvA7@d2ux.org> From: Matthias Petermann To: freebsd-questions@freebsd.org Subject: How to achieve E-Mail Notification on root login? User-Agent: Internet Messaging Program (IMP) H5 (6.0.2) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2013 12:32:57 -0000 Hello, given there is a FreeBSD system with users in the wheel group, what is the best practise to send out a notification via E-Mail if one of them becomes root via su? In an ideal case the E-Mail would contain the user name and the time. I thought about using sudo but this is not in the base system which I would prefer. Kind regards, Matthias -- Matthias Petermann