Permission denied when using mv in Windows 7 Cygwin

Posted by Michael Butler on Super User See other posts from Super User or by Michael Butler
Published on 2013-07-01T16:39:34Z Indexed on 2013/07/01 17:09 UTC
Read the original article Hit count: 648

Filed under:
|

I have Cygwin installed on Windows 7 in a windows domain sign-on environment. I can run most typical commands without issue, but I cannot for the life of me use the "mv" command to move or rename files, regardless of the file or directory.

I can copy and create files without issue.

+-[12:27:57]-[mbutl2@MYHOSTNAME]
+--> tmp $ >> pwd
/tmp
+-[12:27:58]-[mbutl2@MYHOSTNAME]
+--> tmp $ >> touch test.txt
+-[12:28:02]-[mbutl2@MYHOSTNAME]
+--> tmp $ >> mv test.txt hello
-bash: /usr/bin/mv: Permission denied

I have already tried running Cygwin terminal as Administrator and the problem is the same.

I'm open to workarounds, such as trying another exe for moving files and redirecting the mv command to it. Moving files works in the Windows Command Prompt.

© Super User or respective owner

Related posts about windows-7

Related posts about cygwin