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: Repairing permissions after windows reinstall


Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> - find . -uid 98765 | xargs chown <newuser name or UID>

This would run into /proc, which can create a lot of damage depending on
what you do with the files.  The find should either be started from
/cygdrive/c/wherever_cygwin_is_installed and/or use the '-xdev' option.  In
 order to process files with spaces in their names correctly, you'd also
need to use '-print0' on the find and '-0' for xargs.

That still doesn't fix inherited ACL I think, so you'd need something else
to fix those (preferably before doing the chown).


Regards,
Achim.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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