Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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, 1 Apr 2005 00:17:12 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: Path confusion In-Reply-To: <424CD5CE.7DC5AA5C@dessent.net> Message-ID: References: <20050401044036 DOT D428B8553D AT pessard DOT research DOT canon DOT com DOT au> <424CD5CE DOT 7DC5AA5C AT dessent DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 31 Mar 2005, Brian Dessent wrote: > Luke Kendall wrote: > > > find `cygpath -m /` -xdev -user $USER -print \ > > | tr "\n" "\000" \ > > | xargs -0 chown Administrators.SYSTEM > > You can use -print0, and since find is a cygwin application I don't see > what the point of using cygpath is: > > find / -xdev -user $USER -print0 | xargs -0 chown Administrators.SYSTEM Both of us have neglected the same pitfall: find / -xdev -user "$USER" -print0 | xargs -0 chown Administrators.SYSTEM > Though I would be tempted just to do "chown -R / ..." You must mean 'chown -R --from="$USER" ...' :-) > or even better, just set the desired ACL on c:\cygwin before installing > and let it be inherited. That doesn't change the owner, though. One may want to allow only users with administrative privileges to modify system programs, in which case a chown does make sense. 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! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/