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

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

Re: Does anyone really use emacs in terminal?


From: Pascal J. Bourguignon
Subject: Re: Does anyone really use emacs in terminal?
Date: Wed, 08 May 2013 18:51:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Bob Proulx <bob@proulx.com> writes:

> Nicolas Richard wrote:
>> Hugh Lawson writes:
>> > I use "sudo emacs -nw <filename>" in terminal to edit configuration
>> 
>> This runs emacs with su power, which is not so good.
>
> I disagree.  There is nothing wrong with it.  It is no different than:
>
>   # emacs -nw
>
> And surely everyone on this list would agree that emacs is a good
> editor for root to use.

Yes.  However, you must be conscious of the theorical possibility of
emacs lisp viruses thru file and directory local variables.

If you find-file in a directory where a malicious user has written a
.dir-locals.el file, he could theorically take advantage of it to root
you.  Of course, normally emacs ask permission to evaluate a form, or to
set any variable he doesn't know to be safe.  But if you type y or !
carelessly, you can be hosed.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.
You can take the lisper out of the lisp job, but you can't take the lisp out
of the lisper (; -- antifuchs


reply via email to

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