help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I'am root user, but 'emacs /etc/sudoers' still report Buffer is rea


From: tomas
Subject: Re: I'am root user, but 'emacs /etc/sudoers' still report Buffer is read-only: #<buffer sudoers> in modeline
Date: Wed, 29 Apr 2015 12:33:59 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

-----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-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]