unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs on Windows keeps complaining: the directory ... is unsafe.
Date: Tue, 26 May 2009 06:22:29 +0300	[thread overview]
Message-ID: <83hbz8sg3u.fsf@gnu.org> (raw)
In-Reply-To: <87iqjols8w.fsf@telefonica.net>

> From: =?windows-1252?Q?=D3scar_Fuentes?= <ofv@wanadoo.es>
> 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?




  parent reply	other threads:[~2009-05-26  3:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-25 16:11 Emacs on Windows keeps complaining: the directory ... is unsafe Óscar Fuentes
2009-05-25 17:06 ` Juanma Barranquero
2009-05-25 21:34 ` Eli Zaretskii
2009-05-25 22:42   ` Óscar Fuentes
2009-05-25 23:57     ` Juanma Barranquero
2009-05-26  0:23       ` Óscar Fuentes
2009-05-26  0:27         ` Jason Rumney
2009-05-26  1:28           ` Óscar Fuentes
2009-05-26  3:16         ` Eli Zaretskii
2009-05-26 14:30           ` Óscar Fuentes
2009-05-26 19:42             ` Eli Zaretskii
2009-05-26  3:22     ` Eli Zaretskii [this message]
2009-05-26 14:33       ` Óscar Fuentes
2009-05-26 19:41         ` Eli Zaretskii
2009-05-26 21:00           ` Óscar Fuentes

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83hbz8sg3u.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ofv@wanadoo.es \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).