On Wed, 15 Jul 2020 07:49:30 -0600 Bill Stewart <bstew...@iname.com> wrote:
> On Tue, Jul 14, 2020 at 6:34 PM <briand@...> wrote: > > the cygwin home folder is giving me a LOT of trouble with access denied. > > > > i've tried takeown and icacls to fix permissions, and strangely it worked > > for _Some_ files, but i still have files which i need to back up which are > > causing "access denied" errors. > > > > i'm hoping someone who understands how cygwin has set permissions can give > > me a way to fix-up the permissions in ntfs land. > > > > The following is what I have used successfully in the past and should reset > everything: > > 1. Open an elevated PowerShell or cmd.exe shell > > 2. Take ownership to Administrators group: > > takeown /F "C:\cygwin" /A /R /D Y > > 3. Reset all file permissions: > > icacls "C:\cygwin" /reset /T /C > > 4. Reset the file attributes: > > attrib -h -r -s "C:cygwin\*" /s > Thank you very much ! I didn't see anybody mention that attrib step, in all the _many_ docs that i read. -- Brian -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple