“You don’t currently have permission to access this folder”

“You don’t currently have permission to access this folder” – this error happens sometimes on my Windows 7 machine – seemingly in conjunction with cygwin – somehow the ownership of folders/directories gets broken.

Here’s the command to fix this quickly – run as administrator via cmd:

for /D %f in (*) do takeown /R /D Y /f %f

It loops through all directories within the current directory, and takes ownership of the folders (the /R is for recursion, the /D Y (Y will be J on German-language windowses, and the last part just specified that it concerns the folder that’s the current one in the for loop)

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please solve this little equation for verifying that you\'re human *