"permission denied" in terminal

Discussion in 'macOS' started by wallothet, Jun 5, 2013.

  1. wallothet macrumors newbie

    Joined:
    Jun 5, 2013
    #1
    Hello,

    I tried to run an .exe I downloaded from another forum for a game I own. It is for windows so I made sure I have x11 and mono (as required by the developer). When I drag the .exe into the terminal (as directed by instructions given with .exe) I get permission denied. Can anyone help? I am new to this so I could be doing something obviously wrong.

    I type mono and then hit space and enter, then drag file and hit enter, then I get permission denied message.
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    This message means that the thing you're trying to run isn't marked as executable. Fortunately, this is easy to fix with the chmod command (change mode):
    Code:
    chmod +x (drag and drop the file on the Terminal)
    Make sure there's a space between the three parts of this command: between the chmod and the +x, as well as between the +x and the path to the file.
     
  3. wallothet thread starter macrumors newbie

    Joined:
    Jun 5, 2013
    #3
    Question about order of steps...

    Thanks so much for the response, I do have one other question though - when do I input the "mono" command, before or after?


    (Embarrassingly enough, this is so I can run a program that will check the custom content in my Sims3 game so I can find out what files are corrupting it.) Here is the link to where I got the instructions: http://forum.thesims3.com/jforum/posts/list/494790.page

    (Apparently this is really basic and as far as I can tell seems to have worked for some people. One other person had the same problem as me but no solution was offered.) So what order should I do everything in considering I will need to add the chmod step? (And one other thing, when I do "mono" do I need to select anything else? The script seems to imply I should choose between two things but the above instructions mentioned nothing about this. Script is posted below.)

    Thanks for any help you can offer... we Ohioans gotta stick together.
     

    Attached Files:

  4. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #4
    Sample workflow:
    chmod +x name_of_program
    mono name_of_program

    Where "name_of_program" is replaced by whatever the full path to the program is.
     
  5. wallothet thread starter macrumors newbie

    Joined:
    Jun 5, 2013

Share This Page