From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5494 invoked by alias); 4 Jun 2019 19:44:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 5485 invoked by uid 89); 4 Jun 2019 19:44:32 -0000 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 Received: from mailsrv.cs.umass.edu (HELO mailsrv.cs.umass.edu) (128.119.240.136) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Jun 2019 19:44:31 +0000 Received: from [192.168.0.15] (c-24-62-203-86.hsd1.ma.comcast.net [24.62.203.86]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 45ABC4024970; Tue, 4 Jun 2019 15:44:30 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: Trying to create default ACL entries to match file ACL entries To: cygwin@cygwin.com References: <5CF6C7A8.6090902@tlinx.org> From: Eliot Moss Message-ID: Date: Tue, 04 Jun 2019 19:44:00 -0000 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 X-SW-Source: 2019-06/txt/msg00034.txt.bz2 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