From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacs's dired display of Window's file permission Date: Mon, 22 Jun 2009 05:35:25 -0400 Message-ID: References: <5b8a910d-76f2-4dbe-9880-dcb69da88295@d7g2000prl.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1245663374 27526 80.91.229.12 (22 Jun 2009 09:36:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jun 2009 09:36:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 22 11:36:12 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MIfwd-00044n-Gn for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jun 2009 11:36:07 +0200 Original-Received: from localhost ([127.0.0.1]:57452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIfwc-000427-AA for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jun 2009 05:36:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIfw4-00040m-IS for help-gnu-emacs@gnu.org; Mon, 22 Jun 2009 05:35:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIfvz-0003xf-Hy for help-gnu-emacs@gnu.org; Mon, 22 Jun 2009 05:35:31 -0400 Original-Received: from [199.232.76.173] (port=33548 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIfvz-0003xU-Cs for help-gnu-emacs@gnu.org; Mon, 22 Jun 2009 05:35:27 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:55531) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIfvy-0007i9-44 for help-gnu-emacs@gnu.org; Mon, 22 Jun 2009 05:35:26 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MIfvx-0003IF-V3 for help-gnu-emacs@gnu.org; Mon, 22 Jun 2009 05:35:25 -0400 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)) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65428 Archived-At: > From: Xah Lee > 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.