Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

/usr/bin/...: Permission denied error at the terminal

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

Posted on May 22, 2010 8:51 PM

Reply
Question marked as Best reply

Posted on May 23, 2010 8:26 AM

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
2 replies
Question marked as Best reply

May 23, 2010 8:26 AM in response to rnaeye

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

/usr/bin/...: Permission denied error at the terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.