<?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: execute files without read permission in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228442#M171589</link>
    <description>Simple one would be&lt;BR /&gt; &lt;BR /&gt;main(){&lt;BR /&gt; system("&lt;MYSCRIPT&gt;&lt;/MYSCRIPT&gt;}&lt;BR /&gt; &lt;BR /&gt;save as mywrapper.c&lt;BR /&gt;&lt;BR /&gt;Compile with cc -s -o mywrapper mywrapper.c&lt;BR /&gt; &lt;BR /&gt;chown root mywrapper&lt;BR /&gt; &lt;BR /&gt;chmod 6755 mywrapper&lt;BR /&gt; &lt;BR /&gt;In my view, this is a worse security hazard than allowing people to read your script (particulary using system()) but it might be enough for your needs.</description>
    <pubDate>Wed, 24 Mar 2004 10:58:07 GMT</pubDate>
    <dc:creator>Mark Grant</dc:creator>
    <dc:date>2004-03-24T10:58:07Z</dc:date>
    <item>
      <title>execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228429#M171576</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Does anyone knows know I can put a file without read permission, but with execution permission.... I want this because I don't want the user see inside the file.&lt;BR /&gt;&lt;BR /&gt;Is it possible?&lt;BR /&gt;Thanks!&lt;BR /&gt;Carmen.</description>
      <pubDate>Wed, 24 Mar 2004 10:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228429#M171576</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2004-03-24T10:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228430#M171577</link>
      <description>Hi Carmen,&lt;BR /&gt;&lt;BR /&gt;# chmod 100 file&lt;BR /&gt;&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 24 Mar 2004 10:40:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228430#M171577</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-03-24T10:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228431#M171578</link>
      <description>If you are talking about a shell script, it is not possible by just changing the permissions.  A shell script MUST be readable to be executable.</description>
      <pubDate>Wed, 24 Mar 2004 10:40:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228431#M171578</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-03-24T10:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228432#M171579</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes it is possible. Set the permissions of the file accordingly.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2004 10:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228432#M171579</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-03-24T10:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228433#M171580</link>
      <description>It doesn't works fine...&lt;BR /&gt;I put &lt;BR /&gt;chmod 070 to /tmp/prova.txt&lt;BR /&gt; -----x---  1 root oinstall 47 24 Mar 16:33 prova.txt&lt;BR /&gt;&lt;BR /&gt;But If I do:&lt;BR /&gt;&lt;BR /&gt;[:oracle]/tmp&amp;gt; ./prova.txt&lt;BR /&gt;ksh: ./prova.txt: cannot open&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2004 10:42:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228433#M171580</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2004-03-24T10:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228434#M171581</link>
      <description>a file can have execute permissions(see above) without read permissions.&lt;BR /&gt;&lt;BR /&gt;root can execute a script with no read permissions because in reality root can read ANYTHING.&lt;BR /&gt;&lt;BR /&gt;Thats because its all powerful.&lt;BR /&gt;&lt;BR /&gt;On a practical level, it might help to know what you are trying to accomplish.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 24 Mar 2004 10:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228434#M171581</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-03-24T10:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228435#M171582</link>
      <description>You can't do this except for root.  You need read permission to execute it.  The only way around this that I can think of is to have a SETUID root wrapper program that calls the script.</description>
      <pubDate>Wed, 24 Mar 2004 10:44:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228435#M171582</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-24T10:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228436#M171583</link>
      <description>The answer is both yes and no. If the file is a true executable (e.g. a compiled 'C' program) then all you need are the execute ('x') permissions but I suspect that you are talking about a script. A script is interpreted so the shell must be able to read the file before it can execute it. In fact, the execute bits on a shell script only have meaning to the shell itself rather than the OS.&lt;BR /&gt;&lt;BR /&gt;There are some utilities which can compile your shell script into a true executable; the commercial versions work quite well.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2004 10:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228436#M171583</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-24T10:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228437#M171584</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Made a small script with ls -la permissions 100 --x------ rj&lt;BR /&gt;&lt;BR /&gt;/tmp/r# more rj&lt;BR /&gt;ls -la&lt;BR /&gt;/tmp/r# ls -la&lt;BR /&gt;total 48&lt;BR /&gt;drwxr-xr-x   2 root       sys           1024 Mar 24 16:39 .&lt;BR /&gt;drwxrwxrwx   8 bin        bin          22528 Mar 24 16:44 ..&lt;BR /&gt;---x------   1 root       sys              7 Mar 24 16:44 rj&lt;BR /&gt;/tmp/r# ./rj&lt;BR /&gt;total 48&lt;BR /&gt;drwxr-xr-x   2 root       sys           1024 Mar 24 16:39 .&lt;BR /&gt;drwxrwxrwx   8 bin        bin          22528 Mar 24 16:44 ..&lt;BR /&gt;---x------   1 root       sys              7 Mar 24 16:44 rj&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 24 Mar 2004 10:46:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228437#M171584</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-03-24T10:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228438#M171585</link>
      <description>Robert-Jan,&lt;BR /&gt; &lt;BR /&gt;But you are "root".  As SEP said, root can read "unreadable" files.  Try is as a non-root user.</description>
      <pubDate>Wed, 24 Mar 2004 10:48:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228438#M171585</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-24T10:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228439#M171586</link>
      <description>YUP you are right Mark, did not see your post, sorry Carmen.</description>
      <pubDate>Wed, 24 Mar 2004 10:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228439#M171586</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-03-24T10:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228440#M171587</link>
      <description>Hi,&lt;BR /&gt;How does work SETUID root wrapper program??&lt;BR /&gt;Could you put me an example??&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Carmen.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2004 10:52:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228440#M171587</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2004-03-24T10:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228441#M171588</link>
      <description>There are some utilities which can compile your shell script into a true executable; the commercial versions work quite well.....&lt;BR /&gt;&lt;BR /&gt;Does you know the name of one utility of its??&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;BR /&gt;Carmen.</description>
      <pubDate>Wed, 24 Mar 2004 10:56:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228441#M171588</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2004-03-24T10:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228442#M171589</link>
      <description>Simple one would be&lt;BR /&gt; &lt;BR /&gt;main(){&lt;BR /&gt; system("&lt;MYSCRIPT&gt;&lt;/MYSCRIPT&gt;}&lt;BR /&gt; &lt;BR /&gt;save as mywrapper.c&lt;BR /&gt;&lt;BR /&gt;Compile with cc -s -o mywrapper mywrapper.c&lt;BR /&gt; &lt;BR /&gt;chown root mywrapper&lt;BR /&gt; &lt;BR /&gt;chmod 6755 mywrapper&lt;BR /&gt; &lt;BR /&gt;In my view, this is a worse security hazard than allowing people to read your script (particulary using system()) but it might be enough for your needs.</description>
      <pubDate>Wed, 24 Mar 2004 10:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228442#M171589</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-24T10:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228443#M171590</link>
      <description>@ Robert&lt;BR /&gt;&lt;BR /&gt;that is what Clay tried to explain.&lt;BR /&gt;&lt;BR /&gt;root can read everything so no need for read rights. As normal user your script needs these rights to work:&lt;BR /&gt;&lt;BR /&gt;-x-x------ 1 user group 7 Mar 24 16:44 rj&lt;BR /&gt;&lt;BR /&gt;But I have another solution for you carmen. If you don't want that a user can look in a script, because of a password in the script you can use the script compiler shc from &lt;BR /&gt;&lt;A href="http://big.asknet.de/" target="_blank"&gt;http://big.asknet.de/&lt;/A&gt; for me it works fine.&lt;BR /&gt;But when your script MUST run under root rights you should try sudo.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Roland&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2004 10:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228443#M171590</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2004-03-24T10:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228444#M171591</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have prove the script compiler shc from&lt;BR /&gt;&lt;A href="http://big.asknet.de/," target="_blank"&gt;http://big.asknet.de/,&lt;/A&gt; but it shows me:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; shc -f prova.sh&lt;BR /&gt;shc Invalid script's first line: #/bin/ksh&lt;BR /&gt;shc: Error 0&lt;BR /&gt;&lt;BR /&gt;so, I have prove to do:&lt;BR /&gt;&lt;BR /&gt;   int main()&lt;BR /&gt;   {&lt;BR /&gt;   system("prova.sh");&lt;BR /&gt;   }&lt;BR /&gt;and it's works fins.&lt;BR /&gt;Thanks everybody!!!&lt;BR /&gt;Carmen.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2004 09:23:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228444#M171591</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2004-03-26T09:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228445#M171592</link>
      <description>The first line should be #!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Fri, 26 Mar 2004 09:33:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228445#M171592</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-03-26T09:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: execute files without read permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228446#M171593</link>
      <description>I have testet it with Korn-Shell, too (#!/usr/bin/ksh). It has worked. But do not know if it will work with more complex Korn-Shell-scripts.&lt;BR /&gt;&lt;BR /&gt;Roland</description>
      <pubDate>Fri, 26 Mar 2004 09:36:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-files-without-read-permission/m-p/3228446#M171593</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2004-03-26T09:36:37Z</dc:date>
    </item>
  </channel>
</rss>

