From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: ensure safe directory failing Date: Sat, 19 Mar 2011 12:39:54 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300556437 13073 80.91.229.12 (19 Mar 2011 17:40:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 17:40:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 19 18:40:33 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q108c-00058Z-Df for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 18:40:30 +0100 Original-Received: from localhost ([127.0.0.1]:55141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q108b-0003Jl-R8 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 13:40:29 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Sat, 19 Mar 2011 12:39:54 -0500 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-No-Archive: yes Original-Lines: 48 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.128.234 Original-X-Trace: sv3-6Vu+rOfKTQQerdfQ8NTsKqiMgGjC4AH787lwC7iIFdz9lrShOo6V4HaNNX9cmDEjEgV8xFoYCx8Gu4P!YSgipHFbH3Jd4wpzvjxB4K2ImNEgQAIYJ9ldcT3dOPNSApPgT6QaYKOLsSTSD/Cy057qCxe20E26!A8uDhapA0t/mQ5kf+0W9zpKH2JmPhMg= Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3444 Original-Xref: usenet.stanford.edu gnu.emacs.help:186140 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Gmane-Expiry: 2011-04-02 Xref: news.gmane.org gmane.emacs.help:80280 Archived-At: Eli Zaretskii wrote: >> Date: Sat, 19 Mar 2011 07:44:33 -0500 >> From: "B. T. Raven" >> >>> 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.