This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.7 file permissions changes
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 14 Nov 2009 11:01:23 +0100
- Subject: Re: 1.7 file permissions changes
- References: <501545.51925.qm@web65401.mail.ac4.yahoo.com>
- Reply-to: cygwin at cygwin dot com
On Nov 13 15:15, Eric Benson wrote:
> > Without more details I hazard a guess: The Windows process creates the
> > directory without permissions for you to delete the directory or files
> > in that directory and you're running under UAC.
>
> Yes, this turns out to be true. I disabled UAC entirely and now my
> program works.
It's not exactly necessary to switch UAC off, you can also tweak the
permissions of the directory or the parent directory to get what you
want.
> Is there a better way to share file and directory creation,
> modification and deletion between Cygwin processes and ordinary
> Windows processes,
Has the directory been created via Cygwin's mkdir? If so, it might be
fixed if you upgrade to Cygwin 1.7.0-64 and create the directory (and/or
the parent directory) under the new DLL. The older DLLs since January
didn't create so-called "Creator Owner" and "Creator Group" inheritance
entries in the directory DACLs. It's a bit hard to explain, but in
effect all native Windows processes created files within this directory
with a somewhat weird DACL due to the default inheritance rules. Cygwin
processes didn't actually care for these entries so they were not
affected.
> As a Unix hacker I am somewhat mystified by this behavior.
The ACLs are somewhat different than POSIX ACLs and the inheritence
rules are, too. Reading http://cygwin.com/1.7/cygwin-ug-net/ntsec.html
might help for a start. If you are really interested in understanding
security settings in Windows, you will have to read the Windows docs,
though. http://msdn.microsoft.com gives you access to lots of manual
pages and documentation.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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