Re: Repairing permissions after windows reinstall

2016-07-12 Thread Bryan Berns
> In fact I see _two_ raw SIDs when I look at the security tab for any > directory in the old cygwin tree: one has Full control, and the other > just Read & execute. > If everyone else's posts don't get you where you want, I have a recently-written program that can do a search/replace on a SID (or

Re: Repairing permissions after windows reinstall -- scripts to do it

2016-07-05 Thread Henry S. Thompson
Here's what worked for me in the end, over several days (I had several hundred thousand files to fix): These could be parameterised much better, but I leave that as an exercise to the user... These both use subinacl, as getting /substitute ... /restore to work with icacls was beyond me. fixPerms

Re: Repairing permissions after windows reinstall

2016-07-05 Thread Andrey Repin
Greetings, Corinna Vinschen! > On Jul 4 06:27, Andrey Repin wrote: >> Greetings, Henry S. Thompson! >> >> > Andrey Repin writes: >> >> >> Greetings, Henry S. Thompson! >> >> >> >>> Good news: My cygwin file tree survived a Windows (10) reinstall >> >>> Not-so-good news: I have a new SID, so not

Re: Repairing permissions after windows reinstall

2016-07-04 Thread Corinna Vinschen
On Jul 4 06:27, Andrey Repin wrote: > Greetings, Henry S. Thompson! > > > Andrey Repin writes: > > >> Greetings, Henry S. Thompson! > >> > >>> Good news: My cygwin file tree survived a Windows (10) reinstall > >>> Not-so-good news: I have a new SID, so not only do I not own those files > >>> any

Re: Repairing permissions after windows reinstall

2016-07-03 Thread Andrey Repin
Greetings, Henry S. Thompson! > Andrey Repin writes: >> Greetings, Henry S. Thompson! >> >>> Good news: My cygwin file tree survived a Windows (10) reinstall >>> Not-so-good news: I have a new SID, so not only do I not own those files >>> any more (that's easily fixed), but I don't have the permi

Re: Repairing permissions after windows reinstall

2016-07-01 Thread Henry S. Thompson
Andrey Repin writes: > Greetings, Henry S. Thompson! > >> Good news: My cygwin file tree survived a Windows (10) reinstall >> Not-so-good news: I have a new SID, so not only do I not own those files >> any more (that's easily fixed), but I don't have the permissions I >> should, because they are n

Re: Repairing permissions after windows reinstall

2016-06-30 Thread Andrey Repin
Greetings, Henry S. Thompson! > Good news: My cygwin file tree survived a Windows (10) reinstall > Not-so-good news: I have a new SID, so not only do I not own those files > any more (that's easily fixed), but I don't have the permissions I > should, because they are now held by some miscellaneous

Re: Repairing permissions after windows reinstall

2016-06-28 Thread Achim Gratz
Corinna Vinschen cygwin.com> writes: > - find . -uid 98765 | xargs chown 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

Re: Repairing permissions after windows reinstall

2016-06-28 Thread Corinna Vinschen
On Jun 28 12:08, Henry S. Thompson wrote: > Corinna Vinschen writes: > > > On Jun 28 11:04, Henry S. Thompson wrote: > >> Good news: My cygwin file tree survived a Windows (10) reinstall > >> Not-so-good news: I have a new SID, so not only do I not own those files > >> any more (that's easily fixe

Re: Repairing permissions after windows reinstall

2016-06-28 Thread Henry S. Thompson
Corinna Vinschen writes: > On Jun 28 11:04, Henry S. Thompson wrote: >> Good news: My cygwin file tree survived a Windows (10) reinstall >> Not-so-good news: I have a new SID, so not only do I not own those files >> any more (that's easily fixed), but I don't have the permissions I >> should, beca

Re: Repairing permissions after windows reinstall

2016-06-28 Thread Corinna Vinschen
On Jun 28 11:04, Henry S. Thompson wrote: > Good news: My cygwin file tree survived a Windows (10) reinstall > Not-so-good news: I have a new SID, so not only do I not own those files > any more (that's easily fixed), but I don't have the permissions I > should, because they are now held by some mi

Repairing permissions after windows reinstall

2016-06-28 Thread Henry S. Thompson
Good news: My cygwin file tree survived a Windows (10) reinstall Not-so-good news: I have a new SID, so not only do I not own those files any more (that's easily fixed), but I don't have the permissions I should, because they are now held by some miscellaneous old SID. In fact I see _two_ raw SIDs