[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] c:/.emacs.d/server' is unsafe
From: |
Eli Zaretskii |
Subject: |
Re: [h-e-w] c:/.emacs.d/server' is unsafe |
Date: |
Thu, 10 Mar 2011 20:27:25 +0200 |
> Date: Thu, 10 Mar 2011 14:42:16 +0100
> From: "Gamoto" <address@hidden>
> Cc: "help-emacs-windows" <address@hidden>
>
> Nothing else in my site-start.el
> 9) deleted .emacs.d
> 10) with cmd.exe
> emacs -Q
> 11) M-x server-start RET
> -> server-ensure-safe-dir: The directory `~/.emacs.d/server' is unsafe
Very strange, because this solved the problem for several people.
I can suggest one of two ways of solving this:
1) Define a new user on that system, that is not Administrator. (You
can make it a member of the Administrators group, if you want that
user to have privileges like those of Administrator.) Then log in
as that user and install Emacs again. You should not see this
problem for that other user.
2) Edit lisp/server.el to modify the function server-ensure-safe-dir
as follows. Replace these 2 lines:
(unless (eql uid (user-uid)) ; is the dir ours?
(throw :safe nil))
with these 3 lines:
(unless (or (eql uid (user-uid)) ; is the dir ours?
(and (eql uid 544) (eql (user-uid) 500)))
(throw :safe nil))
Then byte-compile server.el (you can use the "Byte Compile this
file" item in the Emacs-Lisp menu from the menu bar), and restart
Emacs.
- Re: Re: [h-e-w] c:/.emacs.d/server' is unsafe, (continued)
- Re: Re: [h-e-w] c:/.emacs.d/server' is unsafe, Gamoto, 2011/03/09
- Re: [h-e-w] c:/.emacs.d/server' is unsafe, Eli Zaretskii, 2011/03/09
- Message not available
- Re: [h-e-w] c:/.emacs.d/server' is unsafe, Eli Zaretskii, 2011/03/09
- Re: Re: [h-e-w] c:/.emacs.d/server' is unsafe, Gamoto, 2011/03/09
- Re: [h-e-w] c:/.emacs.d/server' is unsafe, Eli Zaretskii, 2011/03/09
- Re: Re: [h-e-w] c:/.emacs.d/server' is unsafe, Gamoto, 2011/03/09
- Re: [h-e-w] c:/.emacs.d/server' is unsafe, Eli Zaretskii, 2011/03/09
- Re: Re: [h-e-w] c:/.emacs.d/server' is unsafe, Gamoto, 2011/03/10
- Re: [h-e-w] c:/.emacs.d/server' is unsafe, Eli Zaretskii, 2011/03/10
- Re: Re: [h-e-w] c:/.emacs.d/server' is unsafe, Gamoto, 2011/03/10
- Re: [h-e-w] c:/.emacs.d/server' is unsafe,
Eli Zaretskii <=
- Re: Re: [h-e-w] c:/.emacs.d/server' is unsafe, Gamoto, 2011/03/10
- Re: Re: [h-e-w] c:/.emacs.d/server' is unsafe, Gamoto, 2011/03/09
- Re: [h-e-w] c:/.emacs.d/server' is unsafe, Eli Zaretskii, 2011/03/09
Re: [h-e-w] c:/.emacs.d/server' is unsafe, Ben Key, 2011/03/11
- Re: [h-e-w] c:/.emacs.d/server' is unsafe, Eli Zaretskii, 2011/03/11
- Re: Re: [h-e-w] c:/.emacs.d/server' is unsafe, Gamoto, 2011/03/11
- Re: [h-e-w] c:/.emacs.d/server' is unsafe, Eli Zaretskii, 2011/03/11
- Re: [h-e-w] c:/.emacs.d/server' is unsafe, Ben Key, 2011/03/11
- Message not available
- Re: [h-e-w] c:/.emacs.d/server' is unsafe, Eli Zaretskii, 2011/03/11
- Re: Re: [h-e-w] c:/.emacs.d/server' is unsafe, Gamoto, 2011/03/11