<?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: Setting Execute-Only Permission on a Unix Shell Script for Group &amp;amp; Others in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928767#M287079</link>
    <description>My mistake - I was working as root</description>
    <pubDate>Thu, 18 Jan 2007 16:45:10 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2007-01-18T16:45:10Z</dc:date>
    <item>
      <title>Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928761#M287073</link>
      <description>How do I set Execute-Only Permission on a Unix Shell Script for Group &amp;amp; Others?&lt;BR /&gt;&lt;BR /&gt;I would like the group and "others" to be able to just execute my shell script, but not be able to read the shell script.&lt;BR /&gt;&lt;BR /&gt;Could you tell me how I could accomplish it?&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jan 2007 16:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928761#M287073</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2007-01-18T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928762#M287074</link>
      <description># chmod go-r-w+x filename</description>
      <pubDate>Thu, 18 Jan 2007 16:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928762#M287074</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-01-18T16:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928763#M287075</link>
      <description>chmod 111 $FILE&lt;BR /&gt;would give perms of --x--x--x for the file&lt;BR /&gt;Nobody could read/write the file (except root, of course)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jan 2007 16:39:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928763#M287075</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2007-01-18T16:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928764#M287076</link>
      <description>But, then, I cannot execute the file because I don't have read permissions on the file. I just tried after reading the reply from you.&lt;BR /&gt;&lt;BR /&gt;cat /etc/lp/interface/myshell.sh&lt;BR /&gt;cat: Cannot open /etc/lp/interface/myshell.sh: Permission denied&lt;BR /&gt;&lt;BR /&gt;The above is what I need but:&lt;BR /&gt;&lt;BR /&gt;./myshell.sh&lt;BR /&gt;./myshell.sh: Cannot find or open the file.&lt;BR /&gt;&lt;BR /&gt;But, I want to be able to execute.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 18 Jan 2007 16:40:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928764#M287076</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2007-01-18T16:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928765#M287077</link>
      <description>Hi Ravi:&lt;BR /&gt;&lt;BR /&gt;You can't.  Shell scripts must be *readable* and executable to be executable (unless you are the root user).  The shell interpreter (as specified on the "she-bang" line) must be able to read the file to interpret and execute it.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 18 Jan 2007 16:40:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928765#M287077</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-01-18T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928766#M287078</link>
      <description>While you can set the permissions that way, it won't work. Shell scripts must be read to be executed. See the results:&lt;BR /&gt;&lt;BR /&gt;jtraigle$ ls -l test.sh&lt;BR /&gt;-rwx--x--x   1 root       sys             35 Jan 18 15:39 test.sh&lt;BR /&gt;jtraigle$ ./test.sh&lt;BR /&gt;/usr/bin/sh: ./test.sh: Cannot find or open the file.</description>
      <pubDate>Thu, 18 Jan 2007 16:41:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928766#M287078</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2007-01-18T16:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928767#M287079</link>
      <description>My mistake - I was working as root</description>
      <pubDate>Thu, 18 Jan 2007 16:45:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928767#M287079</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2007-01-18T16:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928768#M287080</link>
      <description>So, there's no solution?&lt;BR /&gt;&lt;BR /&gt;ps: When I run the script, I login as a non-root user.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jan 2007 17:05:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928768#M287080</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2007-01-18T17:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928769#M287081</link>
      <description>Correct.  The script MUST be readable to be executed.</description>
      <pubDate>Thu, 18 Jan 2007 17:06:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928769#M287081</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-01-18T17:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928770#M287082</link>
      <description>A good article on shell script security:&lt;BR /&gt;&lt;A href="http://searchopensource.techtarget.com/tip/0,289483,sid39_gci1216976,00.html" target="_blank"&gt;http://searchopensource.techtarget.com/tip/0,289483,sid39_gci1216976,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There is a package called SHC that may be of some use to you.  I have not used it, but rather just found it via google.&lt;BR /&gt;&lt;BR /&gt;SHC 2.4a&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Shells/shc-2.4a/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Shells/shc-2.4a/&lt;/A&gt;</description>
      <pubDate>Thu, 18 Jan 2007 17:13:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928770#M287082</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-01-18T17:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928771#M287083</link>
      <description>Well, no direct solution with permissions.&lt;BR /&gt;&lt;BR /&gt;You could configure sudo to take care of it by allowing certain users to execute the script as the scripts owner and set the script permissions to read and execute only for the owner.</description>
      <pubDate>Thu, 18 Jan 2007 17:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928771#M287083</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2007-01-18T17:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928772#M287084</link>
      <description>The program "sudo" would be a nice facilitator for this requirement.  Using the sudo tool, you could give execute access to a single .sh  script file(or more if needed), but the permission could be set so that the intended user could never read it,only run it.&lt;BR /&gt;&lt;BR /&gt;Of course, you'd have to go through the time &amp;amp; effort to set up "sudo" on the server - but it is useful for many things, and therefore it would pay you back for your effort(s) over time anyway.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jan 2007 18:33:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928772#M287084</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-01-18T18:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928773#M287085</link>
      <description>Ugh,&lt;BR /&gt;&lt;BR /&gt;I just noticed Jeff's posting re: sudo.  Excuse the posting.</description>
      <pubDate>Thu, 18 Jan 2007 18:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928773#M287085</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-01-18T18:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928774#M287086</link>
      <description>points submitted. Thanks, all.</description>
      <pubDate>Thu, 18 Jan 2007 21:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928774#M287086</guid>
      <dc:creator>Ravi S. Banda</dc:creator>
      <dc:date>2007-01-18T21:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928775#M287087</link>
      <description>This is not MPE/iX where the CI is in bed with the kernel and can get away with only execute permission.&lt;BR /&gt;&lt;BR /&gt;As mentioned by others, you need read permission.</description>
      <pubDate>Sat, 20 Jan 2007 06:23:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928775#M287087</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-01-20T06:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Execute-Only Permission on a Unix Shell Script for Group &amp; Others</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928776#M287088</link>
      <description>You have to realize that a shell script is not a true executable; the actual executable in the case is /usr/bin/sh and it (as would any other binary executable) executes without the read bit being set. But in order to execuate an interpreted script (e.g shell script, Perl script, etc.) the read bit must be set.</description>
      <pubDate>Sat, 20 Jan 2007 20:47:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-execute-only-permission-on-a-unix-shell-script-for-group/m-p/3928776#M287088</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-01-20T20:47:44Z</dc:date>
    </item>
  </channel>
</rss>

