Search code examples
cygwin

"The operating system denied access to the specified file" in Cygwin bash


d@Desktop /cygdrive/c/users/test/otherfolder
$ cygstart --action=runas ping -c 1 www.google.com | grep 'bytes from' | cut -d
 = -f 4
Unable to start 'ping': The operating system denied access to the specified file
.

d@Desktop /cygdrive/c/users/test/otherfolder
$

I am trying to run some scripts on cygwin, but I can't get those script running for some reasons. I tried to run as administrator, I also tried using cygstart --action=runas, but nothing seems to work. Any idea?


Solution

  • chmod 755 ping to set the permissions of the file. Should work.