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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=delVdXdhUn+4cHYB hwFeslUgzPI6JRw9pPImAm5U2mDvXk1Q+T/LVWZk3tedlLSHLrJwSEMXExxMCPl6 hfob+vMsEOgbuFnPRqv5YR05tgwm3wMifaNMetcPo/3HHwjBqCct3mheAalJIjYB XrnyIWA1itZuZkKNU8+K2KAmrvg= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=AnutG2zc0oODoOpalA6mT2 yOUm4=; b=vKhVkODCkXY6IaEsVID/UVUt9QayGAD0s5m1TtXAG8YefkqOVGhLYn 0ag38JcijKvY9vp0R9tMtMWohRVAZa6bwSzn60SVbPZu23y455ZhFPDcXc12VHnO N1pkJV9MGywkN4vqNMvMD3G4021wNfGHXmjJmR2l330nApp4VYuqQ= 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=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: limerock02.mail.cornell.edu X-CornellRouted: This message has been Routed already. Subject: Re: umask not working? To: cygwin AT cygwin DOT com References: <000f01d3bf80$a2e0d8c0$e8a28a40$@cl.cam.ac.uk> From: Ken Brown Message-ID: Date: Mon, 19 Mar 2018 14:33:12 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <000f01d3bf80$a2e0d8c0$e8a28a40$@cl.cam.ac.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; X-IsSubscribed: yes On 3/19/2018 8:48 AM, David Allsopp wrote: > Is this expected behaviour: > > OPAM+DRA AT OPAM ~ > $ uname -a ; umask ; touch /tmp/foo ; ls -l /tmp/foo ; mkdir /tmp/bar ; > touch /tmp/bar/foo ; ls -l /tmp/bar/foo > CYGWIN_NT-6.1-WOW OPAM 2.10.0(0.325/5/3) 2018-02-02 15:21 i686 Cygwin > 0022 > -rw-r--r-- 1 OPAM+DRA OPAM+None 0 Mar 19 13:44 /tmp/foo > -rw-rw-r--+ 1 OPAM+DRA OPAM+None 0 Mar 19 13:44 /tmp/bar/foo > > Why does the file /tmp/bar/foo get g+w when /tmp/foo doesn't - I'm not sure > what to look at on my system to diagnose what I may have inadvertently > tweaked. The directory itself is: > > drwxr-xr-x+ 1 OPAM+DRA OPAM+None 0 Mar 19 13:44 /tmp/bar See if this helps: https://cygwin.com/faq/faq.html#faq.using.same-with-permissions Ken -- 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