This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problem with SETFACL and shortcuts?


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]