Repairing permissions after windows reinstall
Achim Gratz
Stromeko@NexGo.DE
Tue Jun 28 13:38:00 GMT 2016
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
More information about the Cygwin
mailing list