This is the mail archive of the
mailing list for the Cygwin project.
Re: Problems with file permissions during a build
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 21 Jun 2013 15:00:55 +0200
- Subject: Re: Problems with file permissions during a build
- References: <CAMCbSMpykrTRSEnTynYHFra222gnXf58zNw01hFxDDMvNTioVQ at mail dot gmail dot com> <20130621110435 dot GA2781 at calimero dot vinschen dot de> <CAMCbSMr3eqn6QEisqEpdKhG1B++eifSM+hOQ5W78nFSXR_MeTw at mail dot gmail dot com> <CAMCbSMpOg2tpQjd2Dz1r1XV7mo9q5Kmu_7ecJNe7qcpyGA=gqg at mail dot gmail dot com> <20130621113552 dot GG25850 at calimero dot vinschen dot de> <CAMCbSModzkQTxoLhZWwYp-K5+1-ciCauyi7vzrd3nHQK1JaNLA at mail dot gmail dot com> <20130621121524 dot GB7362 at calimero dot vinschen dot de> <CAMCbSMoV4DMuy8oYtx=sO5VhD+FRX--6GJEJ6pbMQXm+wmtiNQ at mail dot gmail dot com> <20130621122934 dot GD7362 at calimero dot vinschen dot de> <CAMCbSMqgjsrpu1n5SkRnDcnZyyZ7u=B7Kdy10zGfgUn25=1xNA at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
On Jun 21 14:38, Arjen Markus wrote:
> I noticed that if I use noacl, then I get the correct looking POSIX permissions,
> but the Windows permissions make it impossible to use the file.
I always use "acl" as mount option.
> Try: cat gnulliver.h
$ cat src/include/gnulliver.h
> I have had the same problem with a package built via autotools, so it
> is more general
> than CMake. (I first reported this on the CMake list, but they did not
> know the solution)
> I run it on /cygdrive/d, which is my Windows d-disk.
Ok, so I tried under /cygdrive/c and the result is the same, then I
tried under an explicit noacl mount point and the result is still the
same. The file has always enough permissions and reading it is no
problem at all.
But the default Windows permissions on the parent dir of your build dir
could explain that behavior when using the noacl mount option. Noacl
means, just let Windows do what it always does and fake the permissions
rather than evaluating them from the given ACL. Remount again with "acl",
and change the permissions explicitely:
$ chown -R you.your-group .
$ chmod -R u+rw,go+r .
Also, make sure your umask is set to a useful value:
$ umask 22
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple