2 Replies Latest reply: May 23, 2010 9:27 AM by rnaeye
rnaeye Level 1 (0 points)
When I type "instmodsh" at terminal, I get following error:
/usr/bin/instmodsh: Permission denied.
The same error happens when I type "perldoc anyModuleName":
/usr/bin/perldoc: Permission denied

This happened after I installed Perl Bundle::CPAN module. Can someone please help me to change permissions. Thank you very much.

Unix, Mac OS X (10.6.3), Unix
  • BobHarris Level 6 (17,699 points)
    My system has the following permissions:

    -rwxr-xr-x 1 root wheel - 4253 Sep 23 2007 /usr/bin/instmodsh
    -rwxr-xr-x 1 root wheel - 224 Sep 23 2007 /usr/bin/perldoc

    I wonder why your permissions are incorrect. Everything in /bin and /usr/bin should have the execute permission bit set.

    You can set the execute bit using:

    sudo chmod +x /usr/bin/instmodsh /usr/bin/perldoc
  • rnaeye Level 1 (0 points)
    Hi BobHarris,
    Thanks a lot. My problem is solved. File permissions where wrong.