From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs on Windows keeps complaining: the directory ... is unsafe. Date: Tue, 26 May 2009 06:22:29 +0300 Message-ID: <83hbz8sg3u.fsf@gnu.org> References: <87skitkvr4.fsf@telefonica.net> <83k544sw84.fsf@gnu.org> <87iqjols8w.fsf@telefonica.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1243308170 20063 80.91.229.12 (26 May 2009 03:22:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2009 03:22:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?windows-1252?Q?=D3scar_Fuentes?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 26 05:22:42 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M8nFR-0005W3-5A for ged-emacs-devel@m.gmane.org; Tue, 26 May 2009 05:22:41 +0200 Original-Received: from localhost ([127.0.0.1]:38328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8nFQ-0001EA-8X for ged-emacs-devel@m.gmane.org; Mon, 25 May 2009 23:22:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8nFL-0001E5-Cl for emacs-devel@gnu.org; Mon, 25 May 2009 23:22:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8nFK-0001Dt-R0 for emacs-devel@gnu.org; Mon, 25 May 2009 23:22:34 -0400 Original-Received: from [199.232.76.173] (port=60233 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8nFK-0001Dq-Le for emacs-devel@gnu.org; Mon, 25 May 2009 23:22:34 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:16737 helo=mtaout3.012.net.il) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8nFK-0006Tc-5O for emacs-devel@gnu.org; Mon, 25 May 2009 23:22:34 -0400 Original-Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KK800D00EB85I00@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Tue, 26 May 2009 06:22:32 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.115.215]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KK800E1REPFMSD0@i_mtaout3.012.net.il>; Tue, 26 May 2009 06:22:28 +0300 (IDT) In-reply-to: <87iqjols8w.fsf@telefonica.net> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111102 Archived-At: > From: =?windows-1252?Q?=D3scar_Fuentes?= > Date: Tue, 26 May 2009 00:42:07 +0200 > > It's strange too the file modes string: "drwxrwxrwx" This is not > consistent with a directory accessible only by the current user > (Administrator). Emacs does not yet support the Windows native security when it computes the mode bits of the files. So the only thing it pays attention to is the Read-only bit, which in this case is off, so the directory is shown as accessible by everyone. > A cygwin shell shows this: > > Administrator@k7 ~ > $ ls -l .emacs.d/ > total 1 > d---------+ 2 Administrators None 0 May 26 00:31 server > ----------+ 1 Administrators None 902 May 7 2008 tramp > d---------+ 2 Administrators None 0 Feb 17 2007 url > > Have no idea what's going on. Cygwin does pay attention to the Windows security features, but it does that in order to emulate Posix user/group/world model, which is more restricted than Windows ACLs. For that reason, what Cygwin shows as mode bits may be incorrect if the file was not created by Cygwin tools in the first place. Anyway, this is a different, although related, problem. By the way, was the .emacs.d directory created originally by some Cygwin tool?