Saturday, September 20, 2014

Permission denied message from MAC command line

When getting the "Permission denied" message when trying to execute a certain file or script, here is the fix:

1. Run ls -l to see if you have execute permissions on the file

2. Run "chmod 755 file.ext" to assign proper execute permissions

3. Run "./file.ext" . It should work fine now.

No comments:

Post a Comment