Permision denied.

Discussion in 'macOS' started by teCma2, Apr 9, 2011.

  1. teCma2 macrumors newbie

    Joined:
    Apr 9, 2011
    #1
    hey guys

    trying to install cocos2d iphone templates by writing in terminal:

    (first the directory) cd /Users/Mathias/Desktop/cocos2d-iphone-0.99.5

    (then the install) ./install-templates.sh

    and it says: -bash: ./install-templates.sh: Permission denied...

    What should I do? Im running mac OS X 10.6.6 and I AM admin..
     
  2. rien333 macrumors regular

    Joined:
    Jun 29, 2010
    Location:
    The Netherlands
    #2
    Not sure if it works, but have you tried sudo ./install-templates.sh ?
    I'm not a real expert, but it could work.
     
  3. teCma2 thread starter macrumors newbie

    Joined:
    Apr 9, 2011
    #3
    Hey

    thx for your input - when i try sodu this comes:


    WARNING: Improper use of the sudo command could lead to data loss
    or the deletion of important system files. Please double-check your
    typing when using sudo. Type "man sudo" for more information.

    To proceed, enter your password, or type Ctrl-C to abort.

    Password:

    ....


    Not sure if i should try? any experts with advice? or you?
     
  4. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #4
    That comes up the first time you use sudo, because with sudo you temporarily gaining root access to perform an action. You can if you're not careful really mess up your system with sudo, so care must be taken
     
  5. teCma2, Apr 9, 2011
    Last edited by a moderator: Apr 9, 2011

    teCma2 thread starter macrumors newbie

    Joined:
    Apr 9, 2011
    #5
    ok, do u know if its ok to use it here? I have this folder with cocos2diphone and wanna install some contents from it to my xcode library?

    Anyways, just doin it. but how would i type in my password? I cant type in the terminal when it says PASSWORD: ??????
     
  6. rien333 macrumors regular

    Joined:
    Jun 29, 2010
    Location:
    The Netherlands
    #6
    You can actually type your password in the terminal. You can't see the letters on the screen, but they are there.
    So just type your password and press enter. Hope I helped.:)
     
  7. teCma2 thread starter macrumors newbie

    Joined:
    Apr 9, 2011
    #7
    Thx alot - do you know why it says: sudo: ./install-templates.sh: command not found??? The dude in this cocos2d tutorial tells that we should do this: http://www.youtube.com/watch?v=B6SjWP9GcPU&feature=relmfu 2:00
     
  8. rien333 macrumors regular

    Joined:
    Jun 29, 2010
    Location:
    The Netherlands
    #8
    Sorry if this is a stupid question, but did you enter ./install-templates.sh in the terminal, or ./install-templates.sh -u? The -u part is important.
     
  9. teCma2 thread starter macrumors newbie

    Joined:
    Apr 9, 2011
    #9
    No questions are stupid - all help is appreciated. but yes, of course I typed in -u ;)
     
  10. rien333 macrumors regular

    Joined:
    Jun 29, 2010
    Location:
    The Netherlands
    #10
    I only have one solution left, but that is because I don't know what the "." means before "/install-templates.sh". My solution is the following command:
    ./install-templates.sh -u -f
    or:
    ./install-templates.sh -f
    Again, I'm not a real expert so what I say could be total junk.
     
  11. itickings macrumors 6502a

    itickings

    Joined:
    Apr 14, 2007
    #11
    The "." means the current folder the Terminal shell is standing in. Writing "./install-templates.sh" means that we want to execute the install-templates.sh that is located in the current folder (provided that it is executable).

    My guess would be that the script doesn't have the appropriate executable bit set. To make sure the script is executable, run:

    Code:
    chmod +x install-templates.sh
     

Share This Page