in reply to /usr/bin/instmodsh: Permission denied.

As asked above, what system?

In addition:

No offense intended, but your question -- as written -- sounds like an appeal for an explanation of *n*x's chmod and directions on its use. If that's not your intent, please clarify. If it is, please read man chmod... and then -- if you're that new to *n*x -- proceed very cautiously.

If the questions above are too hard to answer at your current knowledge level, you should probably consult a good introduction to your OS.

Replies are listed 'Best First'.
Re^2: /usr/bin/instmodsh: Permission denied.
by rnaeye (Friar) on May 23, 2010 at 14:53 UTC

    Hi! All,

    Thank for trying to help. No offense taken. I am a biologist and my Perl knowledge is limited to the book "Learning Perl", and have minimal Unix knowledge, which you can already tell from my question.

    I am using MacOS 10.6.3 Terminal with Perl Version v5.10.0.

    Terminal Shell is "tcsh".

    File permission at top directory:

    [yigite:/] rnaeye% ls -l total 36500 drwxrwxr-x+ 90 root admin 3060 May 22 15:27 Applications drwxrwxrwx@ 8 501 admin 272 Dec 15 2003 Conversion Progra +ms drwxr-xr-x@ 10 rnaeye rnaeye 340 Mar 9 2006 Desktop Folder drwxrwxr-x@ 19 root admin 646 May 22 20:17 Developer drwxr-xr-x@ 6 rnaeye rnaeye 204 Jan 11 2008 Documents drwxrwxr-t+ 65 root admin 2210 May 8 16:45 Library drwxr-xr-x@ 2 root wheel 68 Feb 10 22:43 Network drwxr-xr-x 4 root wheel 136 May 8 14:24 System lrwxr-xr-x 1 root admin 60 May 7 18:29 User Guides And I +nformation -> /Library/Documentation/User Guides and Information.loca +lized lrwxr-xr-x 1 root admin 60 Sep 9 2008 User Guides And I +nformation (from old Mac) -> /Library/Documentation/User Guides and I +nformation.localized drwxr-xr-x 7 root admin 238 May 19 16:38 Users drwxrwxrwt@ 3 root admin 102 May 22 20:23 Volumes drwxr-xr-x@ 39 root wheel 1326 May 8 14:23 bin drwxrwxr-t@ 2 root admin 68 Feb 10 22:43 cores dr-xr-xr-x 3 root wheel 4079 May 22 20:22 dev lrwxr-xr-x@ 1 root wheel 11 May 8 14:23 etc -> private/et +c dr-xr-xr-x 2 root wheel 1 May 22 20:23 home -rw-r--r--@ 1 root wheel 18659362 Feb 26 13:59 mach_kernel dr-xr-xr-x 2 root wheel 1 May 22 20:23 net drwxr-xr-x@ 7 root wheel 238 May 8 16:18 private drwxr-xr-x@ 64 root wheel 2176 May 8 14:24 sbin lrwxr-xr-x@ 1 root wheel 11 May 8 14:23 tmp -> private/tm +p drwxr-xr-x@ 14 root wheel 476 May 22 20:20 usr lrwxr-xr-x@ 1 root wheel 11 May 8 14:23 var -> private/va +r

    File permissions at yigite:/usr rnaeye%:

    [yigite:/usr] rnaeye% ls -l total 8 drwxr-xr-x 8 root wheel 272 May 8 14:31 X11 lrwxr-xr-x 1 root wheel 3 May 8 14:31 X11R6 -> X11 drwxr-xr-x 1090 root wheel 37060 May 22 20:33 bin drwxr-xr-x 4 root wheel 136 Feb 24 20:10 etc drwxr-xr-x 271 root wheel 9214 May 22 20:18 include drwxr-xr-x 387 root wheel 13158 May 22 20:20 lib drwxr-xr-x 106 root wheel 3604 May 22 20:20 libexec drwxrwxr-x 7 root admin 238 Jan 20 00:45 llvm-gcc-4.2 drwxr-xr-x 9 root wheel 306 May 8 16:19 local drwxr-xr-x 236 root wheel 8024 May 22 20:20 sbin drwxr-xr-x 74 root wheel 2516 May 22 20:20 share drwxr-xr-x 4 root wheel 136 May 8 14:23 standalone

    Since I cannot find where Bundle::CPAN is located I cannot send you file permissions for it.

    Thanks for your time. I really appreciate it.

      What are the permissions on the files instmodsh and perldoc?

      Have you tried $ perl -S instmodsh or $ perl -S perldoc?

      When you get perldoc working try

      $ perldoc -l strict C:\perl\5.10.1\lib\strict.pm $ perldoc -l HTML::Template C:\perl\site\5.10.1\lib\HTML\Template.pm $ perldoc -l Bundle::CPAN No documentation found for "Bundle::CPAN". $ which instmodsh C:/perl/5.10.1/bin/instmodsh $ perldoc -l instmodsh C:\perl\5.10.1\bin\instmodsh
      Alternatively
      $ perl -Mstrict -le " print for values %INC" C:/perl/5.10.1/lib/strict.pm

        Thank you everyone. Someone from apple.com>Unix forum solved my problem. I needed to change the file permissions as below.

        old file permissions: -rw-rw-rw- 34 root wheel 807 Jun 24 2009 instmodsh -rw-rw-rw- 34 root wheel 807 Jun 24 2009 perldoc

        I set the execute bit using:

        sudo chmod +x /usr/bin/instmodsh /usr/bin/perldoc
        new file permissions: -rwxrwxrwx 34 root wheel 807 Jun 24 2009 perldoc -rwxrwxrwx 34 root wheel 807 Jun 24 2009 instmodsh

        Now, it works!