This is the mail archive of the
mailing list for the Cygwin project.
Re: Security Settings for directories created in Cygwin (+ executable bit on files)
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Corinna Vinschen <cygwin at cygwin dot com>
- Date: Fri, 8 Aug 2014 18:41:59 +0400
- Subject: Re: Security Settings for directories created in Cygwin (+ executable bit on files)
- Authentication-results: sourceware.org; auth=none
- References: <86wqajxtm9 dot fsf at somewhere dot org> <20140808104334 dot GY13601 at calimero dot vinschen dot de>
- Reply-to: cygwin at cygwin dot com
Greetings, Corinna Vinschen!
>> I've noticed that such a behavior happens when I create a new file in
>> a directory that has been made FROM CYGWIN (`mkdir ~/test/', for
>> Indeed, the permissions of CYGWIN-CREATED DIRECTORIES seem very weird:
>> - "Inherited from"... "None"!
> Perfectly valid. This has been discussed already years ago. It's the
> Windows(!) default primary group for users on a standalone machine (not
> domain member machine). It's the local group with RID 513, called "None"
> on english language systems.
He man that directory security settings are not inherited, when files are
created by Cygwin. Which is explained by a POSIX-adherent behavior of Cygwin.
@Sebastien, if you want Windows behavior (i.e. defer ACL management to OS),
change cygdrive mount flags to noacl.
>> Asking Cygwin to stop playing with the Windows ACL, by mounting my
>> personal directories as "noacl"? Well, that means I won't be able to
>> use `chmod' anymore,
I don't see a reason to use chmod under Windows at all.
>> for setting a script file as "executable", then.
There's no need. Cygwin automatically detect executables from file contents.
>> And I'll have to use a Windows tool to do so, such as `cacls'.
>> Is it really so, the integration of Cygwin permissions within Windows?
>> Or do I miss something?
> You're just missing that the integration is one-way. Non-Cygwin Windows
> executables give a damn for Cygwin settings. Sorry :}
Andrey Repin (email@example.com) 08.08.2014, <18:37>
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple