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: Sun, 20 Mar 2011 11:23:08 -0500 Message-ID: References: <1JmdnR57Z4OcxxjQnZ2dnUVZ_o6dnZ2d@sysmatrix.net> 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 1300639247 26995 80.91.229.12 (20 Mar 2011 16:40:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 16:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 20 17:40:43 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 1Q1LgH-0007ov-Ee for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Mar 2011 17:40:41 +0100 Original-Received: from localhost ([127.0.0.1]:58076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1LgG-0001Ru-So for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Mar 2011 12:40:40 -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: Sun, 20 Mar 2011 11:23:07 -0500 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-No-Archive: yes Original-Lines: 72 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.129.27 Original-X-Trace: sv3-iY2qRQ7B0gJYIlaDSQ+gsj61lYSi7fjjeDeSiy/8DRkJsR7joGSUizUkvKLPWAg3AGKXPRfqAJ6rWc5!G34pfNEQcxR3BwnzDIPMKJ9WwiBx9WXLUgcznX12A8rPY3NmOhT4/c83XmwM7r3/iXCpF7S6ezan!7B69tKEo01bdumbY3V2JO4ucRJW5eg== 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: 3709 Original-Xref: usenet.stanford.edu gnu.emacs.help:186155 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-03 Xref: news.gmane.org gmane.emacs.help:80292 Archived-At: Eli Zaretskii wrote: >> Date: Sat, 19 Mar 2011 20:36:01 -0500 >> From: "B. T. Raven" >> 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? Yes. Same Backtrace. > > 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 void function > M-: (user-uid) RET 1000 (#o1750, #x3e8) > >> 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? Yes, HOME=c:\emacs. > >> 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. > If commenting out (server-start) all 25k of .emacs loads with no complaint. If I move (server-start) from the beginning of .emacs to the end of course most of .emacs is evaluated but the frame creation is screwed up (one frame for a proportionally spaced font (Arial) and one to view calendar and other things that need a fixed width font. But that is probably an unrelated issue. Ed