“Permission Denied” using cygwin in Windows

前端 未结 9 1595
终归单人心
终归单人心 2021-02-01 23:19

Background: I am trying to write a [.bat] file so I can double click it and a bash script will get invoked. The bash script will start up a few window

9条回答
  •  生来不讨喜
    2021-02-02 00:08

    As a Developer, I use a shortcut to provide a command-line interface (CLI) that behaves similar to Linux, in my Windows environment, and ran into the same issue trying to untar a file.

    The fix was to set the shortcut to "Run as Administrator".

    If you are using this method to access your Cygwin environment, go to the properties of the shortcut, select the Advanced button to get the options to "Run as Administrator", check the box, click Ok. And off you go!! You can also set your batch file to do this, by making a shortcut to it and doing the above.

    Hope that helps!

提交回复
热议问题