<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: lsof problem --&amp;gt; /sbin/sh: lsof: Execute permission denied. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807931#M83531</link>
    <description>Changing permission to 755 didn't help.&lt;BR /&gt;&lt;BR /&gt;Don't know if this is useful.&lt;BR /&gt;file lsof returns the following:&lt;BR /&gt;&lt;BR /&gt;lsof:           ELF-32 executable object file&lt;BR /&gt;&lt;BR /&gt;--------------&lt;BR /&gt;Here's the ll listing again...&lt;BR /&gt;&lt;BR /&gt;-rwxr-xr-x   1 bin        sys         252940 Jul  3 12:40 /usr/local/bin/lsof&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Sep 2002 18:07:58 GMT</pubDate>
    <dc:creator>Jack C. Mahaffey</dc:creator>
    <dc:date>2002-09-17T18:07:58Z</dc:date>
    <item>
      <title>lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807923#M83523</link>
      <description>Just installed the 64-bit version of lsof after trying the 32 bit version.&lt;BR /&gt;&lt;BR /&gt;Getting the following error:&lt;BR /&gt;/sbin/sh: lsof: Execute permission denied.&lt;BR /&gt;&lt;BR /&gt;Here's my directory and file permissions:&lt;BR /&gt;# ll /usr/local/bin/lsof&lt;BR /&gt;-rwxr-sr-x   1 bin        sys         252940 Jul  3 12:40 /usr/local/bin/lsof&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ll -d /usr/local/bin&lt;BR /&gt;drwxr-xr-x   6 bin        bin           5120 Sep 17 14:32 /usr/local/bin&lt;BR /&gt;&lt;BR /&gt;# ll -d /usr/local&lt;BR /&gt;drwxrwxrwx  16 bin        bin           1024 Sep 17 13:42 /usr/local&lt;BR /&gt;&lt;BR /&gt;# id root&lt;BR /&gt;uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users),104(ctxuser),600(mqm),202(ARCserve),222(crituser),500(dba),700(ctxadm),701(citrix),777(powerview),105(iplant)&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;# which lsof&lt;BR /&gt;/usr/local/bin/lsof&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Jack...</description>
      <pubDate>Tue, 17 Sep 2002 17:33:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807923#M83523</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-09-17T17:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807924#M83524</link>
      <description>Does this work:&lt;BR /&gt;# ./lsof /etc/services&lt;BR /&gt;or&lt;BR /&gt;# /usr/local/bin/lsof /etc/services&lt;BR /&gt;&lt;BR /&gt;Cheryl</description>
      <pubDate>Tue, 17 Sep 2002 17:38:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807924#M83524</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2002-09-17T17:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807925#M83525</link>
      <description>No, I tried this also.&lt;BR /&gt;&lt;BR /&gt;jack...</description>
      <pubDate>Tue, 17 Sep 2002 17:40:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807925#M83525</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-09-17T17:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807926#M83526</link>
      <description>First are you running lsof as root? Does it work then? &lt;BR /&gt;It should run as root regardless of the setting of the setuid and setgid bits.&lt;BR /&gt;&lt;BR /&gt;Secondly my lsof executable is quite a bit smaller than yours (~156k) but I compiled from source so that may be fine.</description>
      <pubDate>Tue, 17 Sep 2002 17:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807926#M83526</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-09-17T17:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807927#M83527</link>
      <description>Jack,&lt;BR /&gt;Where did you get the lsof from?  I found another report of this error and it was a problem with how the 64 bit files were compiled.  Downloading a clean copy fixed the problem.&lt;BR /&gt;&lt;BR /&gt;You can download and compile it yourself or find one precompiled:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x07980559ff7cd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x07980559ff7cd4118fef0090279cd0f9,00.html&lt;/A&gt; Look for attachment&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://coast.cs.purdue.edu/pub/tools/unix/sysutils/lsof/" target="_blank"&gt;ftp://coast.cs.purdue.edu/pub/tools/unix/sysutils/lsof/&lt;/A&gt; &lt;BR /&gt;&lt;A href="http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/B.11.11/" target="_blank"&gt;http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/B.11.11/&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Cheryl</description>
      <pubDate>Tue, 17 Sep 2002 17:47:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807927#M83527</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2002-09-17T17:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807928#M83528</link>
      <description>No, it does not run as root.  I also attempted using a different login.  Same problem.&lt;BR /&gt;&lt;BR /&gt;jack...</description>
      <pubDate>Tue, 17 Sep 2002 17:48:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807928#M83528</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-09-17T17:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807929#M83529</link>
      <description>Hi&lt;BR /&gt;Do you have any security software on your system that blocking you use of this.?&lt;BR /&gt;Try removing SGID bit, with plain 755 permission on lsof file.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.</description>
      <pubDate>Tue, 17 Sep 2002 17:52:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807929#M83529</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2002-09-17T17:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807930#M83530</link>
      <description>I pulled the binary from perdue and got the following:&lt;BR /&gt;&lt;BR /&gt;lsof_4.64: WARNING: compiled for HP-UX release B.11.11; this is B.11.00.&lt;BR /&gt;lsof_4.64: FATAL: pst_status_size should be: 1176; is 920&lt;BR /&gt;lsof_4.64: FATAL: pst_vminfo_size should be: 1240; is 1096&lt;BR /&gt;lsof_4.64: FATAL: pst_static doesn't contain pst_filedetails_size&lt;BR /&gt;lsof_4.64: FATAL: pst_static doesn't contain pst_socket_size&lt;BR /&gt;lsof_4.64: FATAL: pst_static doesn't contain pst_stream_size&lt;BR /&gt;lsof_4.64: FATAL: pst_static doesn't contain pst_mpathnode_size&lt;BR /&gt;lsof_4.64: FATAL: pst_static doesn't contain pst_fileinfo2_size&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Oh well.  I'll go back and try changing the security to 755.&lt;BR /&gt;&lt;BR /&gt;jack...&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Sep 2002 18:02:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807930#M83530</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-09-17T18:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807931#M83531</link>
      <description>Changing permission to 755 didn't help.&lt;BR /&gt;&lt;BR /&gt;Don't know if this is useful.&lt;BR /&gt;file lsof returns the following:&lt;BR /&gt;&lt;BR /&gt;lsof:           ELF-32 executable object file&lt;BR /&gt;&lt;BR /&gt;--------------&lt;BR /&gt;Here's the ll listing again...&lt;BR /&gt;&lt;BR /&gt;-rwxr-xr-x   1 bin        sys         252940 Jul  3 12:40 /usr/local/bin/lsof&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Sep 2002 18:07:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807931#M83531</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-09-17T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807932#M83532</link>
      <description>your operating system is 64 bit.. correct?</description>
      <pubDate>Tue, 17 Sep 2002 18:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807932#M83532</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-09-17T18:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807933#M83533</link>
      <description>Did you by any chance load the Itanium version rather than PA-RISC?</description>
      <pubDate>Tue, 17 Sep 2002 18:14:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807933#M83533</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-09-17T18:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807934#M83534</link>
      <description>It is 64-bit&lt;BR /&gt;&lt;BR /&gt;getconf KERNEL_BITS returns 64.&lt;BR /&gt;&lt;BR /&gt;I pullled the lsof_4.64.gz version.&lt;BR /&gt;&lt;BR /&gt;jack...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Sep 2002 18:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807934#M83534</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-09-17T18:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807935#M83535</link>
      <description>I'm an idiot when attempting to compile the source.&lt;BR /&gt;&lt;BR /&gt;Here's what I got with the ./Configur hpuxgcc option:&lt;BR /&gt;&lt;BR /&gt;[10064]root@chldevh:/tmp/lsof-4.64 # ./Configure hpuxgcc&lt;BR /&gt;Configuring /dev/kmem-based HP-UX lsof&lt;BR /&gt;&lt;BR /&gt;*****************************************&lt;BR /&gt;*                                       *&lt;BR /&gt;* NOTICE!  Configuring for 64 bit HP-UX *&lt;BR /&gt;*                                       *&lt;BR /&gt;*****************************************&lt;BR /&gt;&lt;BR /&gt;Testing /usr/local/bin/gcc for 64 bit support&lt;BR /&gt;&lt;BR /&gt;***************************************************&lt;BR /&gt;*                                                 *&lt;BR /&gt;* !!!!!!!!!!!!!!!!! FATAL ERROR !!!!!!!!!!!!!!!!! *&lt;BR /&gt;*                                                 *&lt;BR /&gt;* APPARENTLY GCC CANNOT BUILD 64 BIT EXECUTABLES. *&lt;BR /&gt;* A COMPILER MUST BE USED THAT CAN.  SEE 00FAQ    *&lt;BR /&gt;* FOR MORE INFORMATION.                           *&lt;BR /&gt;*                                                 *&lt;BR /&gt;***************************************************&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Here's what I get with a normal compile, system doesn't have HP compiler:&lt;BR /&gt;&lt;BR /&gt;[10065]root@chldevh:/tmp/lsof-4.64 # ./Configure hpux   &lt;BR /&gt;Configuring /dev/kmem-based HP-UX lsof&lt;BR /&gt;&lt;BR /&gt;*****************************************&lt;BR /&gt;*                                       *&lt;BR /&gt;* NOTICE!  Configuring for 64 bit HP-UX *&lt;BR /&gt;*                                       *&lt;BR /&gt;*****************************************&lt;BR /&gt;&lt;BR /&gt;Looking in /stand/vmunix for ipis_s with /usr/contrib/bin/q4 ... &lt;BR /&gt;&lt;BR /&gt;!!!ERROR!!! /usr/contrib/bin/q4 failed and produced the following output.&lt;BR /&gt;&lt;BR /&gt;q4: (warning) no modules in the crashdump or no INDEX file&lt;BR /&gt;q4: (error) vmunix not pxdb'd&lt;BR /&gt;&lt;BR /&gt;!!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!&lt;BR /&gt;Configure can't use /usr/contrib/bin/q4 to examine the ipis_s&lt;BR /&gt;structure.  You must do that yourself, report the result in&lt;BR /&gt;the HPUX_IPC_S_PATCH environment variable, then repeat the&lt;BR /&gt;Configure step.  Consult the Configure script's use of&lt;BR /&gt;/usr/contrib/bin/q4 and the 00XCONFIG file for information&lt;BR /&gt;on ipis_s testing and the setting of HPUX_IPC_S_PATCH.&lt;BR /&gt;!!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!     !!!ERROR!!!&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;I guess I need to find a 64-bit gcc compiler?&lt;BR /&gt;&lt;BR /&gt;jack...</description>
      <pubDate>Tue, 17 Sep 2002 18:31:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807935#M83535</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-09-17T18:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807936#M83536</link>
      <description>Hi Jack,&lt;BR /&gt;&lt;BR /&gt;I have the same error before when I compile the lsof in 11i and used it by other user.&lt;BR /&gt;&lt;BR /&gt;At last, I set the set-user-ID bit and all is OK, i.e. chmod u+s lsof&lt;BR /&gt;&lt;BR /&gt;-rwsr-xr-x   1 root       sys         159744 Mar  6  2002 /usr/local/bin/lsof&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick</description>
      <pubDate>Tue, 17 Sep 2002 23:17:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807936#M83536</guid>
      <dc:creator>Patrick Chim</dc:creator>
      <dc:date>2002-09-17T23:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807937#M83537</link>
      <description>111111                      000000000000000000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      00000         0000&lt;BR /&gt;111111                      000000000000000000&lt;BR /&gt;&lt;BR /&gt;A big 10.   Thanks Patrick.  I was ready to give up.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;jack...</description>
      <pubDate>Wed, 18 Sep 2002 12:05:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807937#M83537</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-09-18T12:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: lsof problem --&gt; /sbin/sh: lsof: Execute permission denied.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807938#M83538</link>
      <description>For those readers who might want the single chmod command for setting the security, the following command will work:&lt;BR /&gt;    chmod 4555 lsof &lt;BR /&gt;&lt;BR /&gt;Security will be set to -r-sr-xr-x&lt;BR /&gt;&lt;BR /&gt;jack...</description>
      <pubDate>Wed, 18 Sep 2002 12:29:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-problem-gt-sbin-sh-lsof-execute-permission-denied/m-p/2807938#M83538</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2002-09-18T12:29:01Z</dc:date>
    </item>
  </channel>
</rss>

