Terminal Issue - Permission Denied

Dear All,

As a bit of background I am trying to install the Long War mod to X-Com on Steam, and I have come to the following issue. I am trying to install the install-LW-OSX.sh file. People all over the internet say it is as easy as opening it in terminal, however when I drag the file in and press 'Enter' it states 'Permission Denied' as follows:

Anthonys-iMac:~ Anthony$ /Users/Anthony/Desktop/LW-EW-Linux-OSX-b15d2/install-LW-OSX.sh

-bash: /Users/Anthony/Desktop/LW-EW-Linux-OSX-b15d2/install-LW-OSX.sh: Permission denied

Anthonys-iMac:~ Anthony$


One suggestion on the internet was to type 'sudo' and then enter, and then run this, but the permission denied error still keeps coming up. I am currently trying to open the file from a folder on the desktop. Also, I am logged in as the admin, so no problems there.


WOuld anyone be able to help me with this.


Best,

Tony

iMac, OS X Yosemite (10.10.2), 3.4GHz 27"

Posted on May 23, 2015 6:36 AM

Reply
5 replies

May 23, 2015 6:44 AM in response to Tony_AH

I imagine that your installer script does not have execute permissions, which you can confirm by looking at the output from:


ls -l /Users/Anthony/Desktop/LW-EW-Linux-OSX-b15d2/install-LW-OSX.sh


If I'm correct, the fix will be:


chmod a+x /Users/Anthony/Desktop/LW-EW-Linux-OSX-b15d2/install-LW-OSX.sh


Make sure you got that script from a trustworthy source before you run it.


C.

May 23, 2015 6:54 PM in response to cdhw

Thanks for the swift reply. Not being an expert at Terminal here is the situation.


When I type in the first function:

Last login: Sun May 24 11:53:16 on ttys000

Anthonys-iMac:~ Anthony$ ls -l /Users/Anthony/Desktop/LW-EW-Linux-OSX-b15d2/install-LW-OSX.sh

-rw-r--r--+ 1 root wheel 8326 28 Oct 2014 /Users/Anthony/Desktop/LW-EW-Linux-OSX-b15d2/install-LW-OSX.sh

Anthonys-iMac:~ Anthony$


And when I type in the second:

Anthonys-iMac:~ Anthony$ chmod a+x /Users/Anthony/Desktop/LW-EW-Linux-OSX-b15d2/install-LW-OSX.sh

chmod: Unable to change file mode on /Users/Anthony/Desktop/LW-EW-Linux-OSX-b15d2/install-LW-OSX.sh: Operation not permitted

Anthonys-iMac:~ Anthony$



So still not permitted. Any advice as to how I change the permissions so I can execute the shell?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal Issue - Permission Denied

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.