This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: full control for non owner and resulting 'cp' created file perms


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]