From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: emacs's dired display of Window's file permission Date: Mon, 22 Jun 2009 11:42:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: <23970e86-3abe-4f66-a132-7918afb3a91c@x1g2000prh.googlegroups.com> References: <5b8a910d-76f2-4dbe-9880-dcb69da88295@d7g2000prl.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1245767586 6378 80.91.229.12 (23 Jun 2009 14:33:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2009 14:33:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 23 16:32:59 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 1MJ73Q-0005dj-7E for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 16:32:56 +0200 Original-Received: from localhost ([127.0.0.1]:45191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ73P-0005Hm-LD for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 10:32:55 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!x1g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1245696133 7823 127.0.0.1 (22 Jun 2009 18:42:13 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 22 Jun 2009 18:42:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x1g2000prh.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:170215 X-Mailman-Approved-At: Tue, 23 Jun 2009 10:25:15 -0400 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:65448 Archived-At: On Jun 22, 2:35=A0am, Eli Zaretskii wrote: > > 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. =A0What Emacs shows you is the effect of a single mode > bit: the read-only bit. =A0A 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: > > > =A0-rw-rw-rw- =A01 xah =A0 =A0None =A0 814669 06-05 00:09 Snapshot_001.= png > > In light of the above, I believe you will understand why. > > > however, cygwin termninal displays this: > > > =A0-rwx------+ =A01 xah =A0 =A0None =A0 814669 Jun =A05 00:09 Snapshot_= 001.png > > > The file's Properties shown in Explorer, has 3 group or users: > > > =A0SYSTEM > > =A0xah > > =A0Administrators > > Cygwin uses NT security features to emulate Posix owner/group/world > standard access rights. =A0Emacs still doesn't. =A0We hope to add to Emac= s > support for Windows ACLs in a future release. =A0But 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. =A0In 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