* emacs's dired display of Window's file permission
@ 2009-06-21 21:31 Xah Lee
2009-06-22 9:35 ` Eli Zaretskii
[not found] ` <mailman.1071.1245663335.2239.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: Xah Lee @ 2009-06-21 21:31 UTC (permalink / raw
To: help-gnu-emacs
On Windows, how's emacs's dired display map the Window's file
permission?
for example, emacs display this:
-rw-rw-rw- 1 xah None 814669 06-05 00:09 Snapshot_001.png
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
and the all have allow for every perm bit except the “Special
permission” bit.
Thanks.
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs's dired display of Window's file permission
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>
1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2009-06-22 9:35 UTC (permalink / raw
To: help-gnu-emacs
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs's dired display of Window's file permission
[not found] ` <mailman.1071.1245663335.2239.help-gnu-emacs@gnu.org>
@ 2009-06-22 18:42 ` Xah Lee
0 siblings, 0 replies; 3+ messages in thread
From: Xah Lee @ 2009-06-22 18:42 UTC (permalink / raw
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-22 18:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.