delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/27/12:52:37

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: Sat, 27 Sep 2003 12:52:24 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Harre Mark VIE <Mark DOT Harre AT eurambank DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: Problem with SETFACL and shortcuts?
In-Reply-To: <864DF0E09F2F6244A46CD70C8DEB4EB903D964@viecs0.global.corp.euram.com>
Message-ID: <Pine.GSO.4.56.0309271251360.3193@slinky.cs.nyu.edu>
References: <864DF0E09F2F6244A46CD70C8DEB4EB903D964 AT viecs0 DOT global DOT corp DOT euram DOT com>
Importance: Normal
MIME-Version: 1.0

On Sat, 27 Sep 2003, Harre Mark VIE wrote:

> [snip]
> If I may ask another question regarding setfacl.
> I would like to use setfacl on all subdirs but unlike chmod it doesn't
> have a recursive option (unless I missed it somewhere?) so I use the
> following bash script:
>
>         cd /
>         chown Administrators:None .
>         IFS=${IFS// /} # processes files with spaces
>         for file in $( find /. )
>         do
>             setfacl -s u::rwx,g::r-x,o::r-x "$file"
>         Done
>         # now set ACLs for home dirs and SSHD etc...
>
> It works but is a little slow.  I could use chmod -R 755 . but I found
> that setfacl does a better job at resetting *all* the NT ACLs to what I
> want.  Is there a more efficient method?
>
> Regards,
> Mark
> [snip]

"man xargs".
	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