X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=PG pWkrhe+/9z8BHwXlU2kOp27TcAQTz34PZntNrMCC//N2bOaxFcS/8FfgPeFNxRBG QjqUjWnxQyWQJQezRob0TjUxxFFAaEgJVkoJuexInqHX0aBfffJOtN6tfYYaQOiD DFm9l+EPzed6Cy0Z57PEr0+axSWmGRt9RCDm/c8fA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=StVVSQcn M64DckJ0PpOL3xwZ6Ig=; b=wF1tRDxSBeAWtOrNflwQx1qNQCgvrANAnMmRz/Vy +7Sz2E+Y0y6VxhVSn+gsjnNHVJwE/n5QJ9Hrj3bpg+I6i+qh1EbMBRmWcJHW8hqd fRo4Yq20QqEy6VJ7aeYr5NX+I4OUdquBYl497+Fb4VjHZzkDDeBYCijjpTgGsdAf j2E= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f176.google.com MIME-Version: 1.0 X-Received: by 10.42.152.67 with SMTP id h3mr6577585icw.56.1432257648198; Thu, 21 May 2015 18:20:48 -0700 (PDT) In-Reply-To: <22C6A8A4889F0C45B71BF3272671822E8209DB87@SVNSBIOMBX02.ENT.dfo-mpo.ca> References: <22C6A8A4889F0C45B71BF3272671822E8209DB87 AT SVNSBIOMBX02 DOT ENT DOT dfo-mpo DOT ca> Date: Thu, 21 May 2015 20:20:48 -0500 Message-ID: Subject: Re: File permissions different inside and outside cygwin root From: Steven Penny To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 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