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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=vaqSWrVh/uJStrSd WGkJRTOrglj0H8O1HCvJqElvWp/fegu+JglCOzWUr5O1fCVUmGQOl/LBhccxaBcw 6oNyi6s7vdVTb8eyOPtx1mJY6Rx618j7p8V7ov2wmYGQNxh+g+u75N5gu0WwGGjN aBNJOK+3tlYUN3SeEJOMaF0ov6E= 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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=qtrcQtPBtK4M77vU8vPSHG 538r8=; b=EU1qy6i31dwhsc3/2+2CDfU/u0s6/egLjswBs7dgJ97LCocpRKNvlz h0W2Lr+LMAwjtI1m+97pVoslopRWwVXrRql0KCB2trDTLf96xKoNl/4s8fsj/urW 9aSDsAiXPY6q4+xzU0lVDCOaYHWTNTDEVbDYVIxxVPXyyB07AMolc= 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=-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 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 DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: umask problem: wrong permissions for new files To: cygwin AT cygwin DOT com References: <20180420100357 DOT GA21217 AT rus DOT uni-stuttgart DOT de> From: Brian Inglis Message-ID: <6cd38c2e-2271-aaee-3263-babf905325c1@SystematicSw.ab.ca> Date: Fri, 20 Apr 2018 07:25:39 -0600 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 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