From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: I'am root user, but 'emacs /etc/sudoers' still report Buffer is read-only: #<buffer sudoers> in modeline
Date: Fri, 01 May 2015 04:31:03 +0200 [thread overview]
Message-ID: <87egn1ghaw.fsf@debian.uxu> (raw)
In-Reply-To: mailman.2062.1430429791.904.help-gnu-emacs@gnu.org
Bob Proulx <bob@proulx.com> writes:
> Not necessary when using the typical sudo
> configuration.
OK, this line in /etc/sudoers does it:
Defaults env_keep += "HOME LOGNAME EDITOR"
Then one can just do 'sudo visudo' and the tildes (the
~s) in the configs can be left tildes and still refer
to HOME.
LOGNAME is preserved otherwise this line
(setq inhibit-startup-echo-area-message "incal")
will break.
EDITOR is to get Emacs, of course.
I don't know if this is something that people
"typically" bother with, but now it works, and some
knowledge has been gained. Remember, "Little by
little, it's the finest meal - it's appetite for
hope..." And I agree.
--
underground experts united
http://user.it.uu.se/~embe8573
prev parent reply other threads:[~2015-05-01 2:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-29 6:27 I'am root user, but 'emacs /etc/sudoers' still report Buffer is read-only: #<buffer sudoers> in modeline Show Dont
2015-04-29 8:25 ` Bob Proulx
2015-04-29 8:36 ` tomas
2015-04-29 9:24 ` Alex Kost
2015-04-29 10:33 ` tomas
[not found] ` <mailman.1889.1430298251.904.help-gnu-emacs@gnu.org>
2015-04-29 20:08 ` Emanuel Berg
2015-04-29 20:29 ` Emanuel Berg
2015-04-30 21:36 ` Bob Proulx
[not found] ` <mailman.2062.1430429791.904.help-gnu-emacs@gnu.org>
2015-05-01 1:23 ` Emanuel Berg
2015-05-01 2:31 ` Emanuel Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87egn1ghaw.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).