X-Spam-Check-By: sourceware.org
X-Authenticated: #1035326
Message-ID: <43A82741.3010602@gmx.de>
Date: Tue, 20 Dec 2005 16:46:09 +0100
From: Holger Krull <holger.krull@gmx.de>
User-Agent: Thunderbird 1.5 (Windows/20051107)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Setting cygwin permissions from Windows programs
References: <do8oog$bds$1@sea.gmane.org> <43A80BC9.2060908@cygwin.com> <do94mk$kmv$1@sea.gmane.org>
In-Reply-To: <do94mk$kmv$1@sea.gmane.org>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


> in Cygwin with permissions of -rwxr--r--, or -rwxr-xr-x for executables 
> and directories.
> 
> I'm trying to avoid having to use Cygwin utilities to assert Cygwin 
> permissions,

Which would be easier, by the way.

> but I am unable to determine the Windows permissions I must 
> assert when creating the files in order for Cygwin to see those 
> permissions. Currently a newly created file appears as:
> 
> -rwx------  1 sholden None 13834 Dec 20 14:26 index.html

xcacls index.html /G sholden:F None:EW Everyone:E /Y

will give -rwxrw-r--

xacls index.html /G sholden:F None:R Everyone:E /Y

will give -rwxr-xr-- 

R (Read) translate to read and execute. 
E will give read

And check if you use a none english windows because windows translates None and Everyone. (My german windows calls this Kein and Jeder)


> This is under Win XP. Are the Cygwin and Windows permissions different 
> universes that don't interact?

As i said before, cygwin only uses windows permissions they can't work around ntfs access rights. You probably get confused by the mapping that has to be done.
Take getfacls in cygwin to look at file permission if more acls have been set.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

