From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LXOxQ-0000rA-L6 for garchives@archives.gentoo.org; Wed, 11 Feb 2009 23:57:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8DC74E026D; Wed, 11 Feb 2009 23:57:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6C459E026D for ; Wed, 11 Feb 2009 23:57:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 13EFC6700E for ; Wed, 11 Feb 2009 23:57:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.417 X-Spam-Level: X-Spam-Status: No, score=-3.417 required=5.5 tests=[AWL=0.183, 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 G2tLalV1CAO5 for ; Wed, 11 Feb 2009 23:57:24 +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 222B66701D for ; Wed, 11 Feb 2009 23:57:22 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LXOxD-00075p-0d for gentoo-user@gentoo.org; Wed, 11 Feb 2009 23:57:19 +0000 Received: from athedsl-51187.home.otenet.gr ([87.203.177.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Feb 2009 23:57:19 +0000 Received: from realnc by athedsl-51187.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Feb 2009 23:57:19 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: Permissions of /etc/sudoers Date: Thu, 12 Feb 2009 01:57:16 +0200 Organization: Lucas Barks Message-ID: References: <498FD0A1.2080205@spotonlinux.org> <499364B6.1050709@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; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-51187.home.otenet.gr User-Agent: Thunderbird 2.0.0.19 (X11/20090203) In-Reply-To: <499364B6.1050709@gmail.com> Sender: news X-Archives-Salt: 3cd58cce-278a-4a7e-9837-12e2f4d54743 X-Archives-Hash: 94d19fd44b0f0107163d873f4b87c681 b.n. wrote: > Michael Hentsch ha scritto: >> The file /etc/sudoers should always be edited with visudo. visudo uses >> file locking, provides basic sanity checks and checks for parse errors. > > This always made me crazy. > > Why, why, why should I use a specialized editor to edit a system file? > It's not like we have vixorgconf, vifstab. You are welcome to edit these > files with any editor you like. Why is /etc/sudoers special? Because it needs to be checked for errors before you save it. But visudo uses the editor specified in the EDITOR environment variable (a lot programs do; EDITOR for editing and VISUAL for viewing). In /etc/env.d/99local, I have: EDITOR=kwrite So here, visudo brings up KDE's text editor.