delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/19/16:11:32

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
Date: Fri, 19 Aug 2005 16:11:19 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Christopher Benson-Manica <ataru AT sdf DOT lonestar DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: Permissions, again
In-Reply-To: <20050819194352.GA28538@SDF.LONESTAR.ORG>
Message-ID: <Pine.GSO.4.61.0508191608070.16057@slinky.cs.nyu.edu>
References: <20050819194352 DOT GA28538 AT SDF DOT LONESTAR DOT ORG>
MIME-Version: 1.0

On Fri, 19 Aug 2005, Christopher Benson-Manica wrote:

> So I'm using smbntsec as the security setting, and it worked like a
> charm.  I've still got a problem, though - the files I create are
> losing the "inherit permissions" attribute, and I don't know how to
> get that attribute back without using the XP file dialog window.  Can
> I get chmod (or some other program) to save the day for me?

Cygwin maps POSIX permissions to Windows ACLs.  In particular, one
decision that was made was to replace the ACLs instead of appending to
them, to better reflect the POSIX permission model.

chmod, and other POSIX programs know nothing about ACLs (which is where
inheritance is specified).  You should, however, be able to use
"getfacl/setfacl" to do what you want.
HTH,
	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!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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