From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: I'am root user, but 'emacs /etc/sudoers' still report Buffer is read-only: # in modeline Date: Wed, 29 Apr 2015 12:33:59 +0200 Message-ID: <20150429103359.GA14078@tuxteam.de> References: <819c0a76-13fb-4d38-baa3-8ca429e8cf31@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed X-Trace: ger.gmane.org 1430303659 13390 80.91.229.3 (29 Apr 2015 10:34:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 10:34:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Show Dont Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 29 12:34:19 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YnPJp-0005Et-KU for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 12:34:17 +0200 Original-Received: from localhost ([::1]:38083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnPJo-00033S-PU for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Apr 2015 06:34:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnPJc-00033K-V8 for help-gnu-emacs@gnu.org; Wed, 29 Apr 2015 06:34:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnPJZ-0001M4-M9 for help-gnu-emacs@gnu.org; Wed, 29 Apr 2015 06:34:04 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:55585 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnPJZ-0001Lu-HP for help-gnu-emacs@gnu.org; Wed, 29 Apr 2015 06:34:01 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1YnPJX-0003k2-7g; Wed, 29 Apr 2015 12:33:59 +0200 In-Reply-To: <819c0a76-13fb-4d38-baa3-8ca429e8cf31@googlegroups.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104071 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Apr 28, 2015 at 11:27:36PM -0700, Show Dont wrote: > I want to edit /etc/sudoers for add 'git ALL=(ALL:ALL) ALL' in it. I am ready the root user, but emacs still can not edit the /etc/sudoers. Note: as Bob and Alex already pointed out, visudo is the right way to do that. Not only it manages the read-only thingie, but it does sanity checks on the sudoers file: if you've managed to shut yourself out of root because of a silly typo in the sudoers file, you'll learn to appreciate that feature :-) - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlVAs5cACgkQBcgs9XrR2kbHEACdE+38FbapZ+KRn2I+qPkDg6pP 23UAnA79eRmqzoeiHTQ/5LyiYrci97E5 =/d4X -----END PGP SIGNATURE-----