X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <47C9FB7F.C551C573@dessent.net>
Date: Sat, 01 Mar 2008 16:57:35 -0800
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: full control for non owner and resulting 'cp' created file perms
References: <200803012102.m21L276p016693@tigris.pounder.sol.net> <47C9CE74.39293530@dessent.net> <200803020039.m220dPWW010681@tigris.pounder.sol.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Tom Rodman wrote:

> slight, change in topic - if one uses cygwin setfacl to add multiple
> acls ( say rwx access to 4 different users, one acl per user )
> to a file, is there a way to copy a file using
> cygwin in a way that preserves these?

cp -p alone won't, but you could always do e.g.

$ cp -p file file2 && setfacl -f <(getfacl file) file2

I suppose "xcopy /o" is also an option, but obviously that won't grok
POSIX paths.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

