Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 14 May 2004 11:39:32 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Cygwin & NFTS
Message-ID: <20040514093932.GC12030@cygbert.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <E47AE55C6B9510418115F481D992699F02E0CD14@nodalcch.cch.tcfr.thales> <40A490BF.4090606@alcatel.it>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <40A490BF.4090606@alcatel.it>
User-Agent: Mutt/1.4.2i

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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

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

