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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=FCOo8ryrVKunfdSz XsZY07bHFS5tlF1ryDkt3GX8Wv21lbzTB3AiWcRTW/v9oE67icbBoo87gc9srmEx aZJ+Jref14XepJAN7VlLk2vw3lSS+cnTXgn9K0vZJ9JM9cNJLpb6TCoetvjzlrIM iZCUBxsvgwzMquwaMg6t/nYcoOg= 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:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=qp7p7MakNX49YdkkvHwZOF UIke0=; b=QR4LgZRSDNuhrpG0Kointtm+JBedUcgQZ9cA8/BGs/Uu/IP9tOYomR szpj9npidT6QSvweK9JI399rYSpKxO7eJz/yv1D6VzkbAPv5UM9zsoPCZflozk7Z rDYGyFZanFt9D0cEmsVUhbEfqD+UffaW/5HttMAx8uLBunQCWFwJ8= 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=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*M:yandex, H*x:Bat!, H*UA:Bat!, H*RU:192.168.1.10 X-HELO: forward102j.mail.yandex.net Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Mon, 19 Mar 2018 20:07:34 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1941712084.20180319200734@yandex.ru> To: "David Allsopp" , cygwin AT cygwin DOT com Subject: Re: umask not working? In-Reply-To: <000f01d3bf80$a2e0d8c0$e8a28a40$@cl.cam.ac.uk> References: <000f01d3bf80$a2e0d8c0$e8a28a40$@cl.cam.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, David Allsopp! > 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 Let me guess, /tmp usertemp ? You have extended ACL on the object. And overall, umask is not a good idea in Windows. -- With best regards, Andrey Repin Monday, March 19, 2018 20:06:19 Sorry for my terrible english... -- 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