This is the mail archive of the cygwin 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: Path confusion


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


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