delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/13/15:16:05

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:to:subject:references:from:date:in-reply-to
:message-id:mime-version:content-type; q=dns; s=default; b=XOiU6
Sl8/7R2g2GFk2A362NueKS7HLFUcE1t0XG4bdxJo9Pb5vdASIFGyNUAL3uhdOCn+
tDKcb7wKHdyvK3U7qrs29UgcJRGb+UHC+lCP+F9akm7XS4pGsxtitHFZbJ1DgAaK
W0NjOr4ghgy+fiA+68EJPZXj4vYhIHgFHVjBHc=
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:to:subject:references:from:date:in-reply-to
:message-id:mime-version:content-type; s=default; bh=Fg4l82k/Se0
a33MBVBJepNiS4w8=; b=Zu6ROY6vruwP7Du14vIUzporCT+JOF5P4hyDGjZpnWD
U5C6ZOditQjN7gPr0E/J9K37+RhnDCu9AcXTd4j2OvUbGVE7lPkefTqFDdow1EhY
UA7VZVJJirEPhfl90pwUDUWJfIY3FAX5TNdL5gIft98LywCBFX/QfEOrO7PqXFFo
=
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=-2.3 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=henry, Henry, H*F:D*ac.uk, Professional
X-HELO: loire.is.ed.ac.uk
To: cygwin AT cygwin DOT com
Subject: Re: Editors set x-bit (sometimes)
References: <1481625566 DOT 176738 DOT 817340945 DOT 718D9CF0 AT webmail DOT messagingengine DOT com> <7bbc7866-32f9-1c22-c39e-e7cc92e28222 AT cornell DOT edu> <1481642417 DOT 99199 DOT 817613057 DOT 617EE00F AT webmail DOT messagingengine DOT com> <8177dbde-68ac-df2a-a968-9e41ed7ca0cb AT SystematicSw DOT ab DOT ca> <87h967obmc DOT fsf AT Rainer DOT invalid>
From: ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson)
Date: Tue, 13 Dec 2016 20:15:37 +0000
In-Reply-To: <87h967obmc.fsf@Rainer.invalid> (Achim Gratz's message of "Tue\, 13 Dec 2016 20\:46\:51 +0100")
Message-ID: <f5b4m27pouu.fsf@troutbeck.inf.ed.ac.uk>
User-Agent: Gnus/5.1012 (Gnus v5.10.12) XEmacs/21.5-b34 (linux)
MIME-Version: 1.0
X-Edinburgh-Scanned: at loire.is.ed.ac.uk with MIMEDefang 2.78, Sophie, Sophos Anti-Virus, Clam AntiVirus
X-IsSubscribed: yes

I find I can reproduce the OP's observations, and the most recent advice
doesn't fix it (although it changes the symptoms):

From mintty/bash:

  639> cd /tmp
  641> ls -ld .
  drwxrwxr-x+ 1 ht None 0 Dec 13 19:55 ./
  640> getfacl .
  # file: .
  # owner: ht
  # group: None
  user::rwx
  group::rwx
  other:r-x
  default:user::rwx
  default:group::r-x
  default:other:r-x

  642> touch x3
  643> ls -l x3
  -rw-r--r-- 1 ht None 0 Dec 13 19:59 x3

Switch to CMD (not elevated):

  C:\Users\ht>cd ..\..\C64\tmp
  C:\C64\tmp>echo > x2
  C:\C64\tmp>

Back to mintty/bash:

  644> ls -l x2
  -rwxr-xr-x 1 ht None 13 Dec 13 20:00 x2*

OK, try the advice

  645> setfacl -bk .
  649> getfacl .
  # file: .
  # owner: ht
  # group: None
  user::rwx
  group::rwx
  other:r-x

  646> echo > y3
  647> ls -l y3
  -rw-r--r-- 1 ht None 1 Dec 13 20:01 y3

Over to CMD:

  C:\Users\ht>cd ..\..\C64\tmp
  C:\C64\tmp>echo > y2
  C:\C64\tmp>

And back to mintty/bash:

  648> ls -l y2
  -rwxrwx---+ 1 ht None 13 Dec 13 20:02 y2*
  650> ls -ld .
  drwxrwxr-x 1 ht None 0 Dec 13 20:02 ./
  652> setfacl -bk y2
  653> ls -l y2
  -rwx------ 1 ht None 13 Dec 13 20:02 y2*

Windows 10 Professional N Ver 10.0 Build 10586
 3229k 2016/08/31 C:\C64\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 2.6.0

ht
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht AT inf DOT ed DOT ac DOT uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

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