delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/22/18:36:46

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:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; q=dns; s=default; b=NFD
auWUoK+ZOZ7rb5uHIRvwA2gsniFbyy6QSPhkatqAaYzXIG3NMFfBSRBQJkhp6TFo
+Eae41DKHS1aoil/Y9sE5S4QiaAxy/W/Kd83VcIQ3P5gsdb9GEniLWwcHOFDpucN
6PmGWaVdbXMlir3zmzZTEmSIP13V15WvR+bNJABQ=
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:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; s=default; bh=KGkdPFqID
cgdTNa6fjErHKNoCS0=; b=NKdePyM6gimDzTFKRJhgc3D1gfiaIQ0wKalvfM5+F
KLM7yggoLXe7YwRk8edXJl2d+pr9qpZp3EV7Cigf8cKWEDUxZVaoH++PHto3Jnhm
U3T2ed1yE4UK7XLzKzmMTGgjh3eSwDMwBBR0f2hHQSuTXCywFjZLV/DC3oilVzXO
Ow=
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-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 spammy=caf, UD:tar, reserved
X-HELO: Ishtar.sc.tlinx.org
Message-ID: <5B7DE56E.6060109@tlinx.org>
Date: Wed, 22 Aug 2018 15:36:30 -0700
From: L A Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: incompat in cygwin choice of using '+' as domain and user separator.
X-IsSubscribed: yes

Ran in to this trying to use tar to store acls and xattrs:

>  tar caf lawbins.tar scripts scripts- bin 
tar: miner.js: Warning: Cannot acl_to_text: Invalid argument
tar: run-crons.sys: Warning: Cannot acl_to_text: Invalid argument
tar: smallprof.out: Warning: Cannot acl_to_text: Invalid argument
tar: tmon.out: Warning: Cannot acl_to_text: Invalid argument
tar: ubytes_to_utf8.new: Warning: Cannot acl_to_text: Invalid argument

examining one of these:

>  find bin -name tmon.out       
bin/tmon.out

>  lsacl bin/tmon.out
[u::rwx,g::rwx,o:r-x,u:Unknown+User:rwx,g:Unknown+Group:rwx,g:Administrators:rwx,g:Bliss\Domain 
Admins:rwx,m:rwx/] bin/tmon.out

I tried tar in an existing dir:

>  mkdir test
>  tar caf test.tar test
>  ll test
total 0
>  cd test
>  tar xaf ../test.tar
>  ll
total 0
drwxrwxr-x+ 1 0 Aug 22 15:26 test/
>  lsacl test
[u::rwx,g::rwx,g:Bliss\lawgroup:rwx,g:Bliss\Domain 
Admins:rwx,m:rwx,o:r-x/ 
u::rwx,g::rwx,g:Bliss\lawgroup:rwx,g:Bliss\Domain 
Admins:rwx,m:rwx,o:r-x] test

With the above and only standard separator chars, no problem

I'm guessing, but '+' is a reserved char that's not permitted in 
acl_to_text...
Perhaps it might be good to not set the default to some non-default, since
the default(\) seems to work most places, including on linux, though
you do have to allow '\' in the list of allowed chars in /etc/login.defs

How do I change the default separator char from '+' back to '\'?
(by default, I mean the char that is used when the corresponding ID
isn't in /etc/passwd?

Thanks!






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