From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs's dired display of Window's file permission
Date: Mon, 22 Jun 2009 05:35:25 -0400 [thread overview]
Message-ID: <E1MIfvx-0003IF-V3@fencepost.gnu.org> (raw)
In-Reply-To: <5b8a910d-76f2-4dbe-9880-dcb69da88295@d7g2000prl.googlegroups.com> (message from Xah Lee on Sun, 21 Jun 2009 14:31:21 -0700 (PDT))
> From: Xah Lee <xahlee@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.
next prev parent reply other threads:[~2009-06-22 9:35 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 [this message]
[not found] ` <mailman.1071.1245663335.2239.help-gnu-emacs@gnu.org>
2009-06-22 18:42 ` Xah Lee
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=E1MIfvx-0003IF-V3@fencepost.gnu.org \
--to=eliz@gnu.org \
--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).