From owner-freebsd-questions@FreeBSD.ORG Thu Apr 5 09:58:44 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED7E016A403 for ; Thu, 5 Apr 2007 09:58:44 +0000 (UTC) (envelope-from amarendra.godbole@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id AB84F13C489 for ; Thu, 5 Apr 2007 09:58:44 +0000 (UTC) (envelope-from amarendra.godbole@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so604526ana for ; Thu, 05 Apr 2007 02:58:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DSaX2LX18Yl9s1kuA957kOJylWMjk0dOX5eRClQWzm8fOka2QKmLghHAVUJ2qbE12EYG2ORl07/eA+jOQVEgFNViLHIY0f77LMrkRaTewI2CXEkLbOuKOEVkaVtwEVEiCntMbJ0qt61sZ7hvnwXnEBBlNevMTQAj5zIUOlrHUWI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YjeSq6K0Nel174i3qdWayItwBDz+TQM5PgyMya/y589ntsX7T75tJHJTtoIQZU3pn9azDQMN6CF9oruiCdiOkXflGRNVYN1Q8N/jGRg4Vh3NHP4rVsIrd5/TqGXEkeu+jzNeTPX7fRYOwLRMfzlSigFQ2FUhIqaRKS/gaG7+8EI= Received: by 10.100.190.8 with SMTP id n8mr1117931anf.1175767124321; Thu, 05 Apr 2007 02:58:44 -0700 (PDT) Received: by 10.100.119.14 with HTTP; Thu, 5 Apr 2007 02:58:44 -0700 (PDT) Message-ID: <294439d20704050258n2acd4d08sf8795144bb75675b@mail.gmail.com> Date: Thu, 5 Apr 2007 15:28:44 +0530 From: "Amarendra Godbole" To: freebsd-questions@freebsd.org In-Reply-To: <7d4f41f50704050142v9c73a17tb1812f218ea4416@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7d4f41f50704050142v9c73a17tb1812f218ea4416@mail.gmail.com> Subject: Re: Should sudo be used? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 09:58:45 -0000 On 4/5/07, Victor Engmark wrote: > Hi all, > > I thought it would be a good idea to use sudo on my FreeBSD laptop, but I'm > having doubts after checking the handbook (it's not mentioned at all) and > Google (most of the articles were obscure and / or old). > > Are you using sudo? If not, why? [...] I am the only user on my system and I use sudo for all commands that require root access. My primary reason is proper logging in the syslog. All commands that I execute using sudo are logged to the syslog - this way I know have an audit trail of my actions, when I am sudo to root. In contrast, doing a su and executing commands leaves back no trail whatsoever... Here is a snippet of my syslog, when I executed whoami (just as an example) with sudo: Apr 5 15:26:07 zimbu sudo: amar : TTY=ttyp4 ; PWD=/home/amar ; USER=root ; COMMAND=/usr/bin/whoami Cheers, Amarendra