delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/03/19/09:32:21

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=x9brd/9iDNZzn8V+
CkNUwCpIuyxldlHxpUV0vEdsDFRZuSF4CrEMrUPx+xHHYaOTtXMqSo9mUcairAQC
IkbiMK0VWUSuzCCNV5PQkefaQCLmF1SWS+InGybW4kKAKSCpCzkuqPzivDWHW5We
CQP30u13JZY0snNHV3Tr48PsoGY=
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=BnvEdgSbZ23yzCXejuvr5/
KYh7o=; b=Qp7UJw9QmaQ9OnaJ5ztpiM6KFOzVubMOGaDimNaW63XpqZK7v98G9D
ZjEtmDcm4p0HfZdPonkaTzas9z30a4ncrCCRmJkPuw7zTs/q3SJouiQQt4FbuM9r
PMJRawoY93EBqG7pHDRIvgyHwWlrQlrSaBgOChpmDD2sUl5/nOHEg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.9 required=5.0 tests=BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=pe, PE, P.E, UD:P.E
X-HELO: EMP-EXED202.leidos.com
Subject: Re: EXTERNAL: umask not working?
To: <cygwin AT cygwin DOT com>
References: <000f01d3bf80$a2e0d8c0$e8a28a40$@cl.cam.ac.uk>
From: "Wells, Roger K." <wellsr AT leidos DOT com>
Message-ID: <54d95929-45d3-447a-33e7-57cfdc3179fb@leidos.com>
Date: Mon, 19 Mar 2018 09:32:03 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <000f01d3bf80$a2e0d8c0$e8a28a40$@cl.cam.ac.uk>
X-IsSubscribed: yes

On 03/19/2018 08:49 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
>
> Thanks!
>
>
> David
>
>
> --
> 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
>
>
FWIW
$ uname -a ; umask ; touch /tmp/foo ; ls -l /tmp/foo ; mkdir /tmp/bar ; 
touch /tmp/bar/foo ; ls -l /tmp/bar/foo
CYGWIN_NT-10.0 rwells-x240 2.10.0(0.325/5/3) 2018-02-02 15:16 x86_64 Cygwin
0022
-rw-r--r-- 1 roger None 0 Mar 19 09:29 /tmp/foo
mkdir: created directory '/tmp/bar'
-rw-r--r-- 1 roger None 0 Mar 19 09:29 /tmp/bar/foo

HTH

-- 

Roger Wells, P.E.
leidos
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger DOT k DOT wells AT leidos DOT com


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019