delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/01/00:18:56

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, 1 Apr 2005 00:17:12 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
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: <Pine.GSO.4.61.0504010012190.26371@slinky.cs.nyu.edu>
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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019