X-Recipient: archive-cygwin@delorie.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:date:message-id:from:reply-to:to:subject
	:references:in-reply-to:content-type; q=dns; s=default; b=GI72JQ
	0ozuFEOv1BS6O+o0C2/GzJE6pdbINmIpuIk9r3rIsKuXomFcBs5I5tJPF6WYyP+V
	vhifIXs2y5PAUXY2AXdmoSjNGthf/I05eTalrsqXye159et3G9UAD4p+KiAEP2Ly
	zrNEF0oCHeUX6B815PpM3EUxUj1BoOQSoYl50=
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:date:message-id:from:reply-to:to:subject
	:references:in-reply-to:content-type; s=default; bh=vYvtCIn+QjN9
	aEOl9FHXGBfz17Q=; b=QchOa8XEhl5F3iNN/aCq4ieA12WfJPztLUzcenovjlTN
	C7EvEyfvlnWP9Oh65dpl7b39OZrlfsnUfe3pnZ/m+LKvXbdn/ptel1/YGd+SMZpv
	m3R+msPfqH/Ibi3864gawuisSsImhE1hYxvYfod9ixXPI8sO8jQez4J38/x2Uxc=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Seven, Everyone, H*F:D*nl, junk
X-HELO: lb1-smtp-cloud7.xs4all.net
Date: Fri, 20 Apr 2018 14:45:44 +0200
Message-ID: <5cdf9901f2c50f2fa15d7ce5c01c8fdf@smtp-cloud7.xs4all.net>
From: Houder <houder@xs4all.nl>
Reply-To: cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: umask problem: wrong permissions for new files
References: <20180420100357.GA21217@rus.uni-stuttgart.de>
In-Reply-to: <20180420100357.GA21217@rus.uni-stuttgart.de>
Content-Type: text/plain; charset=UTF-8; format=fixed
User-Agent: mua.awk 0.99
X-CMAE-Envelope: MS4wfN+4W4UUnamUgl0MvJg8QYwpaMSYa5DwdD1F2D6RhXtWZVBG65ErYYns7Dnbz+OCukbkTzBhVwzV5ocUU1E10AFeoreO77NsIP6/lBIACLkBZarLbPwA jifTzABvYt6/GV20wkzIFdeCZyb2upmzmhAtmJ0mc6GmYVQTqpdk299BCiJxDmSysn+0N1WD2N5aMQ==

On Fri, 20 Apr 2018 12:03:57, 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?

They do.

64-@@ umask
0022
64-@@ ls -l /tmp
total 0
-rw-r--r-- 1 Henri None 0 Apr 20 14:37 junk
64-@@ touch /tmp/junk
64-@@ ls -l /tmp
total 0
-rw-r--r-- 1 Henri None 0 Apr 20 14:39 junk
64-@@ getfacl /tmp
# file: /tmp
# owner: Henri
# group: None
# flags: --t
user::rwx
group::rwx
other:rwx
default:user::rwx
default:group::r-x
default:other:r-x

64-@@ icacls e:/Cygwin64/tmp
e:/Cygwin64/tmp Seven\Henri:(F)
                Seven\None:(RX,W)
                Everyone:(RX,W)
                NULL SID:(RD)
                CREATOR OWNER:(OI)(CI)(IO)(F)
                CREATOR GROUP:(OI)(CI)(IO)(RX)
                Everyone:(OI)(CI)(IO)(RX)

Successfully processed 1 files; Failed processing 0 files

Remember, it is Windows ... So you have to work a little harder :-)

Henri


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

