all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: ensure safe directory failing
Date: Sat, 19 Mar 2011 12:39:54 -0500	[thread overview]
Message-ID: <DJGdnX5Xgvf3dxnQnZ2dnUVZ_r2dnZ2d@sysmatrix.net> (raw)
In-Reply-To: <mailman.3.1300546821.11495.help-gnu-emacs@gnu.org>

Eli Zaretskii wrote:
>> Date: Sat, 19 Mar 2011 07:44:33 -0500
>> From: "B. T. Raven" <nihil@nihilo.net>
>>
>>> Are you logged in as Administrator on that machine?
>> Essentially yes. No password to logon. Up until ver. 23 (server-start)
>> in .emacs worked with HOME=C:\emacs (i.e. everything at same level as
>> emacs/bin). Under DocumentsandSettings the owners of all the folders
>> seem to be Administrators, User, System and with all permissions
>> checked.  The owner under c:\emacs was always Everyone and all
>> permissions were checked.
>> I read the entire thread at
>> http://osdir.com/ml/help-emacs-windows-gnu/2011-03/
>> on this topic but I can't seem to make .emacs.d directory safe with any
>> combo of users and/or permissions. This is on a desktop with win2000. On
>> a laptop with xp and with home=c:\emacs it does work but all I see there
>> is that the directory is read only (i.e. right click properties or
>> Alt-Enter doesn't reveal anything about ownership).
> 
> Can you try the patch to server.el below?
> 
> --- lisp/server.el	2011-01-02 23:50:46 +0000
> +++ lisp/server.el	2011-03-11 12:19:08 +0000
> @@ -474,7 +474,13 @@ See variable `server-auth-dir' for detai
>  			      (file-name-as-directory dir))
>  		      :warning)
>  		     (throw :safe t))
> -		   (unless (eql uid (user-uid)) ; is the dir ours?
> +		   (unless (or (= uid (user-uid)) ; is the dir ours?
> +			       (and w32
> +				    ;; Files created on Windows by
> +				    ;; Administrator (RID=500) have
> +				    ;; the Administrators (RID=544)
> +				    ;; group recorded as the owner.
> +				    (= uid 544) (= (user-uid) 500)))
>  		     (throw :safe nil))
>  		   (when w32                    ; on NTFS?
>  		     (throw :safe t))
> 
> 

I think so. I don't have or don't understand the source code maintenance
tools but if I just delete lines 474-477 and add those starting with:
(unless (or (= uid (user-uid)) ; is the dir ours?
it should accomplish the same thing. I'll save the old server.el and
.elc and byte-compile the new one.

Thanks; I'll report back later.


  parent reply	other threads:[~2011-03-19 17:39 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 [this message]
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
     [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=DJGdnX5Xgvf3dxnQnZ2dnUVZ_r2dnZ2d@sysmatrix.net \
    --to=nihil@nihilo.net \
    --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.