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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=eTqDycnAQzO9xRZq 7qc9Z9jGgs0pNYSozKHDTD0cloSRm1f4iQVHvpU81lB3JACUpfQickHeIJ6fjc27 rlwLVycPxL3eyq7F11wGoUIQCe3/Cz0sEnHtJL16kcJ3TdMXZq7h7yWM4Kv7b/pe AF3rW2HHB8aqe5b4Z7Mkumw0b/8= 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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=5gAzHhEoT9tRDEH+tRNA8v FNTQY=; b=y0DplhtXqgYYOhBeOlOz+9TZxMtQGp90mVpIvItRFaw6u1AX5vUnJA qnWv5wQTxBMpITqy3KaBgEluGeRcup3U4KTeqsI3JmFpBTtfRLjB8Frz7elqdrRK WedQYsoYukQ0ZdwQdM8fqhrTJO8+CRX8LCe/9jclCHRyvf4NbOHiI= 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-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mailsrv.cs.umass.edu Reply-To: moss AT cs DOT umass DOT edu Subject: Re: Trying to create default ACL entries to match file ACL entries To: cygwin AT cygwin DOT com References: <5CF6C7A8 DOT 6090902 AT tlinx DOT org> From: Eliot Moss Message-ID: Date: Tue, 4 Jun 2019 15:44:29 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <5CF6C7A8.6090902@tlinx.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 6/4/2019 3:34 PM, L A Walsh wrote: > I am trying to create an entry for '/' (or '.' w/me sitting in '/') > where the default entries are the same as the file entries. Ooooo ... not sure _I'd_ mess what / on a Windows system! > I noticed the example give in the manpage for copying entries: > > The special filename "-" indicates reading from stdin. > Note that you can use this with getfacl and setfacl to copy ACLs from > one file to another: > > $ getfacl source_file | setfacl -f - target_file > > so tried doing: > > getfacl . | setfacl -d - . I have no problem doing: mkdir temp getfacl . | setfacl -f - temp getfacl temp | setfacl -f . getfacl / | setfacl -f . I didn't want to try setting things on /, but you might: cd / mkdir foo getfacl foo | setfacl -f - . But I am not sure what foo would have as its permission, i.e., whether they are what you want. Regards - EM -- 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