unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs's dired display of Window's file permission
Date: Mon, 22 Jun 2009 11:42:13 -0700 (PDT)	[thread overview]
Message-ID: <23970e86-3abe-4f66-a132-7918afb3a91c@x1g2000prh.googlegroups.com> (raw)
In-Reply-To: mailman.1071.1245663335.2239.help-gnu-emacs@gnu.org

On Jun 22, 2:35 am, Eli Zaretskii <e...@gnu.org> wrote:
> > From: Xah Lee <xah...@gmail.com>
> > Newsgroups: gnu.emacs.help
> > Date: Sun, 21 Jun 2009 14:31:21 -0700 (PDT)
>
> > On Windows, how's emacs's dired display map the Window's file
> > permission?
>
> If by "Windows file permissions" you mean the native NTFS file
> security access rights, then Emacs on Windows currently doesn't look
> at them at all.  What Emacs shows you is the effect of a single mode
> bit: the read-only bit.  A file with the readonly bit set will be show
> with only read access, otherwise both read and write will be shown.
> The execute bit is _computed_ for executable programs and batch files.
>
> In addition, the single rwx group computed as I explain above is
> copied to the other 2 Posix groups, so, for example, a read-only
> non-executable file will be shown as "r--r--r--".
>
> > for example, emacs display this:
>
> >  -rw-rw-rw-  1 xah    None   814669 06-05 00:09 Snapshot_001.png
>
> In light of the above, I believe you will understand why.
>
> > however, cygwin termninal displays this:
>
> >  -rwx------+  1 xah    None   814669 Jun  5 00:09 Snapshot_001.png
>
> > The file's Properties shown in Explorer, has 3 group or users:
>
> >  SYSTEM
> >  xah
> >  Administrators
>
> Cygwin uses NT security features to emulate Posix owner/group/world
> standard access rights.  Emacs still doesn't.  We hope to add to Emacs
> support for Windows ACLs in a future release.  But even then, Emacs
> will not necessarily be compatible with Cygwin, because Posix
> emulation is not the most important goal of the native Windows port of
> Emacs.  In particular, Cygwin may do strange things with files whose
> ACL is not set by a Cygwin program, while the native Windows port of
> Emacs should work with these files as any other native Windows program
> does.
>
> If you want compatibility with Cygwin programs, use the Cygwin build
> of Emacs.

Thanks Eli. That's super helpful.

 Xah


      parent reply	other threads:[~2009-06-22 18:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-21 21:31 emacs's dired display of Window's file permission Xah Lee
2009-06-22  9:35 ` Eli Zaretskii
     [not found] ` <mailman.1071.1245663335.2239.help-gnu-emacs@gnu.org>
2009-06-22 18:42   ` Xah Lee [this message]

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=23970e86-3abe-4f66-a132-7918afb3a91c@x1g2000prh.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).