Benches macOS

2

/usr/bin/...: Permission denied error at …

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

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

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    BobHarris

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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. 0

    rnaeye

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi BobHarris,

    Thanks a lot. My problem is solved. File permissions where wrong.

    Best,