delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/14/08:51:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 14 May 2004 08:51:36 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin & NFTS
In-Reply-To: <20040514093932.GC12030@cygbert.vinschen.de>
Message-ID: <Pine.GSO.4.56.0405140850020.20801@slinky.cs.nyu.edu>
References: <E47AE55C6B9510418115F481D992699F02E0CD14 AT nodalcch DOT cch DOT tcfr DOT thales> <40A490BF DOT 4090606 AT alcatel DOT it> <20040514093932 DOT GC12030 AT cygbert DOT vinschen DOT de>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Fri, 14 May 2004, Corinna Vinschen wrote:

> On May 14 11:26, Danilo Turina wrote:
> > I don't know if this information is related to your case, but notice
> > that in Windows (I'm absolutely sure for W2K and WinXP) when you copy a
> > file it takes the security attributes (the rights) of the folder where
> > it has been copied, while when you move it it maintains its
> > rights/security attributes doesn't change.
>
> On Cygwin it depends on whether "ntsec" is set or not.  If ntsec is
> switched off, the default Windows rules apply, while with ntsec on,
> Cygwin sets the permissions in a POSIXy way.  However, copying a file
> means to create a new file.  Copying over the permissions is then a
> responsibility of the application (cp(1) in this very case).  If the
> application doesn't have ACL support, then only the POSIX standard
> permissions (user, group, other) are transferred.
>
> Corinna

FWIW, one can always do "getfacl oldfile | setfacl -f - newfile".  I think
this be ripe for the FAQ or the UG -- it crops up from time to time.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019