Skip to content

Trying to install mods-Permission denied

I'm trying to install the megamodkit using the Mac OS X easy installer. I have the v 236 of weidu. I am getting this message when I try to install:

Last login: Thu Dec 5 14:19:50 on ttys001
Jeffrey-Jenkinss-MacBook-Pro:~ jeffreyjenkins$ cd '/Applications/Baldur'\''s Gate - Enhanced Edition/Game Data/00777/Baldur'\''s Gate - Enhanced Edition.app/Contents/Resources/'
Jeffrey-Jenkinss-MacBook-Pro:Resources jeffreyjenkins$ ./setup-MegaModKits
-bash: ./setup-MegaModKits: Permission denied
Jeffrey-Jenkinss-MacBook-Pro:Resources jeffreyjenkins$

What do I do? Thanks

Comments

  • doshidaniadoshidania Member Posts: 46
    Okay I was having this issue and this is what worked for me
    Go to terminal and type "chmod u+x ./setup-(name of file you are trying to set up)
    so type:
    chmod u+x ./setup-MegaModKits
  • atakdogatakdog Member Posts: 51
    That will work in general. But on Mavericks (OS 10.9), you may still have problems. If so, the following should work:

    - Before installing mods, put everything you plan on installing into a folder you create — doesn't matter where that folder is. (This step isn't necessary but makes life easier.)
    - Open Terminal. (It's in your applications folder, inside a subfolder called Utilities.)
    - Terminal will give you a command line prompt. At the prompt, type exactly the following (not including the quotation marks): "sudo chmod -R 0777 ". Don't press return yet.
    - Grab the folder that contains your mods, and try to drag it right into your terminal window. This will have the effect of copying the exact address of that folder onto that command line. Your line will now look something like "sudo chmod -R 0777 Users/Your Name/Desktop/mods to install".
    - Press return.
    - Terminal will ask you for your password (your admin password, which you use for logging onto your machine as an administrator). Type it in (it won't display while you do so), and press return.

    Now, go ahead and move all your mod files into the Resources folder as you normally would; the permissions of all the files have been changed. If you still get a permissions error, try the same steps but drag the Resources folder itself into the Terminal window; that will take a little longer but will change the permissions on every file in that folder.

    For the curious, what this line is doing:

    sudo — allows terminal to do its thing even if the system thinks it shouldn't have permission to. This is the trick that is sometimes necessary in Mavericks, which is notorious for permissions problems even when you're logged in as an administrator.
    chmod — changes permissions (technically, change mode).
    -R — apply the command to everything inside the selected folder and all its subfolders.
    0777 — gives everyone permission to do everything. Each 7 is for read + write + execute (read=1, write=2, execute=4; the sum means allow all three); the three numbers indicate owner, user, and everyone. This command completely unsecures everything in the selected folder, so don't use it indiscriminately.
  • soupatroopersoupatrooper Member Posts: 6
    Hi have tried the above steps, but still do get the Permission denied response from the terminal window. Checked permission to read and write on command file as well (in my case, setup-bg2_tweaks.command) .

    I really appreciate all the help advice that is given on the forum with regards to helping users of Mavericks and the problem with this permission denied issue, but I don't seem to get mine to work and I 'm wondering if I'm missing anything here. Are there more of you out there who have yet to, or had success with installing mods on Mavericks?

    Sigh....
Sign In or Register to comment.