From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28668 invoked by alias); 8 Aug 2014 08:45:11 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 28658 invoked by uid 89); 8 Aug 2014 08:45:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 08 Aug 2014 08:45:08 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XFfnL-0003zs-8H for cygwin@cygwin.com; Fri, 08 Aug 2014 10:45:03 +0200 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2014 10:45:03 +0200 Received: from sva-news by dd5e0353a.access.telenet.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Aug 2014 10:45:03 +0200 To: cygwin@cygwin.com From: Sebastien Vauban Subject: Security Settings for directories created in Cygwin (+ executable bit on files) Date: Fri, 08 Aug 2014 08:45:00 -0000 Message-ID: <86wqajxtm9.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain X-Url: Under construction... X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (windows-nt) X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00186.txt.bz2 Hello, Currently, whenever I create new files from Windows 8 executables (such as Notepad), they're often flagged as "executable", even for text files! 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 example). Indeed, the permissions of CYGWIN-CREATED DIRECTORIES seem very weird: - "Inherited from"... "None"! - "All Users" having "Read & Execute" permission on "this folder, subfolders and FILES"... IIUC, when creating a new file from Cygwin, the `umask' (022, in my case) is respected and new files are not executables then, except if I require it explicitly (via `chmod'). Though, when creating a new file from a Windows executable, Windows inherits permissions from the folder where my file gets created -- hence, an executable permission if the directory was created from Cygwin... How to correct that? 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, for setting a script file as "executable", then. 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? Best regards, Seb -- Sebastien Vauban -- 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