Permission denied when using mv in Windows 7 Cygwin

  • See if the file has been blocked by Windows.

    Check the properties of the file, there may be a note saying This file came from another computer and might be blocked to help protect this computer To check for and unblock the file, follow these steps: Right-click the blocked file and then click Properties. In the General tab, click Unblock if the option is available.

  • Check to see if your antivirus is blocking the file.

    You can check to see if your antivirus software is blocking a file by temporarily disabling it, and then trying to open the file.


Update:

  1. Right-click the file or folder, and then click Properties.
  2. Click the Security tab.
  3. Under Group or user names click your name to see the permissions you have.
  4. Click Edit, then check the check boxes for the permissions that you need and then click OK.

Result:

enter image description here


Update 2:

Try this:

  • Right click, select Properties.
  • Click the Security tab.
  • Click Advanced.
  • Click the Owner tab.
  • Change owner to yourself.
  • Click Edit.
  • Check Replace owner on subcontainers and objects.
  • Click OK.

The workaround was to re-download Cygwin's mv.exe utility, saving it as a different name like mvvv.exe (before actually downloading it, since I don't have access to rename mv.exe). Then, I set up a symbolic link to point mv to mvvv.exe so I can use it normally.