public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Subject: Re: File permissions different inside and outside cygwin root
Date: Fri, 22 May 2015 01:32:00 -0000	[thread overview]
Message-ID: <CAAXzdLXvYjKaKRDMvvmjuTq2WTWZX=VFPkQZvTn3yUncndazhg@mail.gmail.com> (raw)
In-Reply-To: <22C6A8A4889F0C45B71BF3272671822E8209DB87@SVNSBIOMBX02.ENT.dfo-mpo.ca>

On Thu, May 21, 2015 at 7:33 AM, DeTracey, Brendan wrote:
> $ touch /cygdrive/c/Temp/testfile
> $ ll /cygdrive/c/Temp/testfile
> -rw-rwxr--+ 1 detraceyb Domain Users 0 May 21 09:23 /cygdrive/c/Temp/testfile*

What you are seeing is the current behavior, some discussion is being had about
what is right to do in this situation:

http://cygwin.com/ml/cygwin/2015-05/msg00194.html
http://cygwin.com/ml/cygwin/2015-04/msg00171.html

I am of the opinion that if you "touch" a file, it should not be executable
under Cygwin unless you explicitly grant that permission via "chmod", "install",
etc. However some are not agreeing with this and we are left with the current
state. My current workaround for this is using "noacl" mounts when needed:

http://github.com/svnpenn/dotfiles/blob/b8ace36/fstab

This does have some drawbacks. noacl mounts will ignore any programs such as
"chmod" and "install" that modify permissions. Instead files are checked for a
shebang:

- "#!" in the case of Bash scripts
- ":" in the case of batch files

Even though it is already a good idea to use a shebang,

http://stackoverflow.com/q/25165808

using "noacl" forces the matter. Also using "noacl" I believe gives you less
control over permissions, as I am not sure how you would even do something like
setting read or write permissions.

--
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

  reply	other threads:[~2015-05-22  1:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 13:05 DeTracey, Brendan
2015-05-22  1:32 ` Steven Penny [this message]
2015-05-24 16:30 Duane Ellis
2015-06-01 18:44 ` Buchbinder, Barry (NIH/NIAID) [E]
2015-06-02  0:01   ` Steven Penny
2015-06-02  7:00     ` Yaakov Selkowitz
2015-06-02 12:58       ` Buchbinder, Barry (NIH/NIAID) [E]
2015-06-02 14:53         ` Duane Ellis
2015-06-05  3:53           ` Larry Hall (Cygwin)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAXzdLXvYjKaKRDMvvmjuTq2WTWZX=VFPkQZvTn3yUncndazhg@mail.gmail.com' \
    --to=svnpenn@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).