From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61193 invoked by alias); 20 Apr 2018 13:25:43 -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 61136 invoked by uid 89); 20 Apr 2018 13:25:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy= X-HELO: smtp-out-so.shaw.ca Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.139) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Apr 2018 13:25:41 +0000 Received: from [192.168.1.100] ([24.64.240.204]) by shaw.ca with ESMTP id 9W2lfaTKQYxCT9W2mfbMdP; Fri, 20 Apr 2018 07:25:40 -0600 X-Authority-Analysis: v=2.3 cv=cav8UELM c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=SwS1IWabR6I2erN5x0EA:9 a=QEXdDO2ut3YA:10 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: umask problem: wrong permissions for new files To: cygwin@cygwin.com References: <20180420100357.GA21217@rus.uni-stuttgart.de> From: Brian Inglis Message-ID: <6cd38c2e-2271-aaee-3263-babf905325c1@SystematicSw.ab.ca> Date: Fri, 20 Apr 2018 13:25:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180420100357.GA21217@rus.uni-stuttgart.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfMIrvlLbKMN8wL6zN77LmCp0PRe2H3EY0IRmQzHCP56sBGJZOeuB1zT1ODFwS+cLUFaU6nNBuXJRicReF1KEQi2GykYm2eOnHSmNoS8rsMv2YSIowGdf crlQAC0UpZHxUcgiNmUFuwa75+K8Cd7qtExq67uKTRtVsTQ9JCdhAZASLtHdT/IjiTBDYKEW0W2wVw== X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00253.txt.bz2 On 2018-04-20 04:03, Ulli Horlacher wrote: > cygwin umask does not work as expected: > /tmp: uname -a; umask; rm -f zz; touch zz; ls -l zz > Linux diaspora 4.4.0-119-generic #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux > 0022 > -rw-r--r-- 1 framstag users 0 Apr 20 12:00 zz > /tmp: uname -a; umask; rm -f zz; touch zz; ls -l zz > CYGWIN_NT-6.1 WIN-LS0QDOSDIBL 2.10.0(0.325/5/3) 2018-02-02 15:21 i686 Cygwin > 0022 > -rw-rw----+ 1 admin None 0 Apr 20 12:00 zz > Why do not have new files mode -rw-r--r-- on cygwin? Cygwin supports Windows ACLs as POSIX ACLs, which are also supported by Linux. Use setfacl to set similar default ACLs (DACLs) on a Linux directory, rerun your test there, and you should see similar results. *Never* remove DACLs from any Windows directory which will *ever* be used with any non-Cygwin Windows program: /undefined behaviour/ will result. Mostly neither Cygwin nor Windows programs will be able to do anything with those files until you fix the permissions problems using elevated commands ;^> -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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