all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: ensure safe directory failing
Date: Sun, 20 Mar 2011 03:10:10 -0400	[thread overview]
Message-ID: <E1Q1CmA-0000B2-OD@fencepost.gnu.org> (raw)
In-Reply-To: <1JmdnR57Z4OcxxjQnZ2dnUVZ_o6dnZ2d@sysmatrix.net> (nihil@nihilo.net)

> Date: Sat, 19 Mar 2011 20:36:01 -0500
> From: "B. T. Raven" <nihil@nihilo.net>
> Newsgroups: gnu.emacs.help
> 
> Okay, I made the patch and changed owners on c:\emacs\.emacs.d and
> c:\emacs\.emacs.d\server to Administrator and Administrators but still
> get error.

Trivia first: did you byte compile the patched server.el?  Did you
restart Emacs after that?

If the answer is YES to both, then please type the two commands below
and show the results:

  M-: (file-attributes "c:/emacs/.emacs.d" 'integer) RET
  M-: (user-uid) RET

> Would it be worth while to change the patch to 500 OR 544 instead of
> AND?

No.  The code checks for the situation where the user is
Administrator, whereas the directory where the server file is about to
be created is owned by the Administrators group.

Btw, does your HOME variable point to C:/emacs?  If not, why does
Emacs create the server file in C:/emacs/.emacs.d?

> Btw, why is it uid 544 and then user-uid 500?

These are the IDs of Administrators and Administrator, respectively.

> Or even not checking for safe directory?

That would be against the intent of server.el, which wants to assure
that no one but yourself can access the server file.

> Also my username id is a member of Administrators and has full
> control almost everywhere that Administrator has.

This not about control, this is about security.

> Remember this is on win2000 Professional not XP although it is ntfs file
> system.

I don't think there's a difference, but the 2 commands above should
tell where I'm wrong.



  reply	other threads:[~2011-03-20  7:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-18 22:44 ensure safe directory failing B. T. Raven
2011-03-19  7:50 ` Eli Zaretskii
     [not found] ` <mailman.8.1300521008.15172.help-gnu-emacs@gnu.org>
2011-03-19 12:44   ` B. T. Raven
2011-03-19 15:00     ` Eli Zaretskii
     [not found]     ` <mailman.3.1300546821.11495.help-gnu-emacs@gnu.org>
2011-03-19 17:39       ` B. T. Raven
2011-03-19 17:47         ` Eli Zaretskii
     [not found]         ` <mailman.9.1300556892.13615.help-gnu-emacs@gnu.org>
2011-03-20  1:36           ` B. T. Raven
2011-03-20  7:10             ` Eli Zaretskii [this message]
     [not found]             ` <mailman.13.1300605015.19367.help-gnu-emacs@gnu.org>
2011-03-20 16:23               ` B. T. Raven
2011-03-20 16:30                 ` B. T. Raven
2011-03-20 17:55                   ` Eli Zaretskii
     [not found]                   ` <mailman.3.1300643740.13228.help-gnu-emacs@gnu.org>
2011-03-20 19:06                     ` B. T. Raven
2011-03-20 20:35                       ` Eli Zaretskii
     [not found]                       ` <mailman.1.1300653326.12439.help-gnu-emacs@gnu.org>
2011-03-20 20:46                         ` B. T. Raven

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Q1CmA-0000B2-OD@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.