2 Replies Latest reply: May 23, 2010 9:27 AM by rnaeye
rnaeye Level 1 Level 1
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.
~Erbay

Unix, Mac OS X (10.6.3), Unix
Solved by BobHarris on May 23, 2010 8:26 AM Solved
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
  • BobHarris Level 6 Level 6
    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 Level 1
    Hi BobHarris,
    Thanks a lot. My problem is solved. File permissions where wrong.
    Best,