www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/30/15:03:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4C2B7DDF.8070906@bopp.net>
References: <AANLkTil7AIxbWoUFglLsMZT4TkwMkxbzTt_6ejuev-3P AT mail DOT gmail DOT com> <4C2B7DDF DOT 8070906 AT bopp DOT net>
Date: Wed, 30 Jun 2010 14:03:22 -0500
Message-ID: <AANLkTinScCK6GQpVSWVhPCSRPONbzyW4-CIxoCGpEdo5@mail.gmail.com>
Subject: Re: Cygwin file permission issues
From: Derek Greer <dbgreer AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Thanks Jeremy, this seems to have resolved the issue.

For those who might stumble upon this in the future, here's exactly
what I ended up doing:

1. Edit the /etc/fstab file
2. Added the following line (note: our install of Cygwin is on the X drive):

    X:/cygwin / ntfs override,binary,noacl 0 0

3. Closed and reopened the bash shell.
4. Changed to the folder in question and issued a 'touch' command to
create a test file.
5. Opened the properties on the newly created file through Windows
Explorer and verified that the permissions were correctly being
inherited from the parent folder.


Derek



On Wed, Jun 30, 2010 at 12:24 PM, Jeremy Bopp <jeremy AT bopp DOT net> wrote:
> On 6/30/2010 11:27 AM, Derek Greer wrote:
>> I've run into a Cygwin permissions issue that I haven't been able to
>> resolve by looking through past discussions.
>>
>> When a file file or folder is created by a user under cygwin, it isn't
>> adhering to the permissions inherited by parent folders. =A0Based on the
>> parent folder, any folders and files created should have full access
>> by all users, but they aren't writable. =A0When I go to the Security tab
>> under Windows I get:
>>
>> "The permissions on [file/folder name] are incorrectly ordered, which
>> may cause some entries to be ineffective. =A0Press OK to continue and
>> sort the permissions correctly, or Cancel to reset the permissions."
>
> Read the following sections of the User's guide:
>
> http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files
> http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
>
> The short and sweet is that this is the intended behavior of Cygwin, but
> you can work around it by ensuring that the noacl option is set on the
> mountpoint under which the target file resides. =A0You may need/want to
> create a new mountpoint just for the files of interest.
>
> -Jeremy
>
> --
> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>
>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019