From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Unsafe directory error at startup. Date: Wed, 28 Mar 2012 22:17:13 +0200 Message-ID: <83y5qk1nw6.fsf@gnu.org> References: <3a9e2de9-a639-498e-83b1-da675334a914@k17g2000vbn.googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1332980002 27448 80.91.229.3 (29 Mar 2012 00:13:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2012 00:13:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 02:13:21 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SD2zQ-0004y5-Vv for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 02:13:21 +0200 Original-Received: from localhost ([::1]:57217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SD2zQ-0000pU-6W for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 20:13:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCzYM-0002Ov-56 for help-gnu-emacs@gnu.org; Wed, 28 Mar 2012 16:33:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCzH2-0000qt-F6 for help-gnu-emacs@gnu.org; Wed, 28 Mar 2012 16:15:17 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:53798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCzH2-0000qi-7L for help-gnu-emacs@gnu.org; Wed, 28 Mar 2012 16:15:16 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M1M00I002SZ3S00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Wed, 28 Mar 2012 22:15:14 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.32.40]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M1M00H2T2XDY1A0@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Wed, 28 Mar 2012 22:15:14 +0200 (IST) In-reply-to: <3a9e2de9-a639-498e-83b1-da675334a914@k17g2000vbn.googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84188 Archived-At: > From: Pingouin > Date: Thu, 2 Jun 2011 06:04:38 -0700 (PDT) > > I just installed emacs-23.3.1 on a 64-bit Windows server where I have > temporary admin rights. > > I did copy my .emacs file from a 32-bit Windows workstation to the > startup directory. > > At startup I get the following error. > > &&&&&&&&&&&&&&&&&&&&&&&&&&&&& > Warning (initialization): An error occurred while loading `c:/Program > Files/Emacs/.emacs': > > error: The directory `~/.emacs.d/server' is unsafe > &&&&&&&&&&&&&&&&&&&&&&&&&&&&& This means you are not the owner of that directory. > this directory is created by Emacs itself, why is it "unsafe"? Because it was created with someone else's credentials, which means that someone has full access to your private stuff. It depends how you ran Emacs the first time. (What does it mean "temporary admin rights"?) First thing to try is delete the ~/.emacs.d directory (copy any precious file there to some temporary place), then restart Emacs while logged in under your "normal" username, not "temporary admin", and let Emacs create that directory with your credentials. To see who is that directory's owner, type inside Emacs M-: (file-attributes "~/.emacs.d/server" 'string) RET and compare the owner with M-: (user-login-name) RET If recreating the .emacs.d directory doesn't help, change its owner via the "My Computer"s "Security" tab shown when you right-click on .emacs.d in Windows Explorer.