Frequently Asked Questions

Nested
Why do I get a permission denied error when I try to run a Perl script?
User: kmaclean
Date: 1/1/2010 10:04 pm
Views: 10726
Rating: 13

You need to make the script file executable using the chmod command or Nautilus:

chmod u+x <filename>
   changes permission of the named file to executable
.

  • u - user, (this means you)
  • + - adds permissions
  • x - executable rights

Nautilus

right click the file, click 'properties' on the right-click menu, then select the Permissions tab, and then put a check next to the Execute box on the owner line.

PreviousNext