delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/12/18:39:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Message-Id: <200508122240.j7CMegtr043792@unsane.co.uk>
From: "Vince" <jhary AT unsane DOT co DOT uk>
To: "'Dave Korn'" <dave DOT korn AT artimi DOT com>, <cygwin AT cygwin DOT com>
Subject: RE: [Windows Security] User rights inherited from parent directory
Date: Fri, 12 Aug 2005 23:39:54 +0100
MIME-Version: 1.0
In-Reply-To: <SERRANOXAg0pepP1znX00000284@SERRANO.CAM.ARTIMI.COM>

 

> > When I copy a file into that folder using the Windows Explorer, it 
> > works as expected by me.  However---now the relation to 
> cygwin---using 
> > `cp' sets the user rights in the access list of the copied file to 
> > other values.
> 
>   Well, yes, of course it does.  'cp' behaves like the POSIX 
> version, setting rights according to the umask; and POSIX 
> only knows about UGO rights, so the newly-copied files get 
> the nearest approximation in that scheme to their original 
> ACLs.  'cp' does not know about Windoze ACLs because POSIX 
> does not know about Windoze ACLS.  If you want to have files 
> that use the POSIX perms model, use cygwin's 'cp' command, 
> but if you want to have files that use the full Windoze ACLs, 
> use a windows copy command.
> 

Its been a while but if I remember rightly, if you don't want cygwin 
to set the permissions then add nontsec to your CYGWIN environment
Variable and windows will handle permssions for you so permissions are 
inherited. 

Vince
> 
>     cheers,
>       DaveK
> --
> Can't think of a witty .sigline today....
> 
> 
> --
> 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/
> 


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