Run script on mac prompt "Permission denied"

Andy_24 picture Andy_24 · Sep 5, 2012 · Viewed 302.8k times · Source

I'm new to mac with not familiar on terminal command, i put the dvtcolorconvert.rb file on root directory of my volume, this ruby script can converting xcode 3 themes into xcode 4 themes format, which is xxxxxxxx.dvtcolortheme format.

Then run the script /dvtcolorconvert.rb ~/Themes/ObsidianCode.xccolortheme on terminal, but it's always prompt "Permission denied".

what's wrong with this? Anybody can help me solve this problem? Thanks.

Answer

schluchc picture schluchc · Sep 5, 2012

Did you give yourself the rights to execute the script?

The following command as super user will do this for you:

sudo chmod 755 'filename'

For details you should read the man page of chmod.