<?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: Shell Compiler in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295841#M183000</link>
    <description>I think Antunes is mistaken the script will not execute without read permission.&lt;BR /&gt;&lt;BR /&gt;carrjo% chmod 111 test&lt;BR /&gt;carrjo% ls -la&lt;BR /&gt;total 418&lt;BR /&gt;drwxr-xr-x   2 carrjo   root          96 Jun  4 08:51 .&lt;BR /&gt;drwxr-xr-x  23 root     root        1024 May 27 13:56 ..&lt;BR /&gt;-rw-------   1 carrjo   1494           4 Jun  4 08:37 .sh_history&lt;BR /&gt;-rw-r--r--   1 carrjo   1494           0 Mar 17 14:47 foo&lt;BR /&gt;---x--x--x   1 carrjo   1494      209136 Jun  4 08:36 ksh&lt;BR /&gt;---x--x--x   1 carrjo   1494          53 Jun  4 08:51 test&lt;BR /&gt;----------   1 carrjo   1494          29 Mar 17 14:27 testfile&lt;BR /&gt;carrjo% ./test&lt;BR /&gt;./test: ./test: cannot open&lt;BR /&gt;carrjo% chmod 555 test&lt;BR /&gt;carrjo% ls -la&lt;BR /&gt;total 418&lt;BR /&gt;drwxr-xr-x   2 carrjo   root          96 Jun  4 08:51 .&lt;BR /&gt;drwxr-xr-x  23 root     root        1024 May 27 13:56 ..&lt;BR /&gt;-rw-------   1 carrjo   1494           4 Jun  4 08:37 .sh_history&lt;BR /&gt;-rw-r--r--   1 carrjo   1494           0 Mar 17 14:47 foo&lt;BR /&gt;---x--x--x   1 carrjo   1494      209136 Jun  4 08:36 ksh&lt;BR /&gt;-r-xr-xr-x   1 carrjo   1494          53 Jun  4 08:51 test&lt;BR /&gt;----------   1 carrjo   1494          29 Mar 17 14:27 testfile&lt;BR /&gt;carrjo% ./test&lt;BR /&gt;hello world&lt;BR /&gt;***********&lt;BR /&gt;ss1025:carrjo%&lt;BR /&gt;</description>
    <pubDate>Fri, 04 Jun 2004 02:58:10 GMT</pubDate>
    <dc:creator>John Carr_2</dc:creator>
    <dc:date>2004-06-04T02:58:10Z</dc:date>
    <item>
      <title>Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295836#M182995</link>
      <description>Is there such thing as a posix shell compiler or any thing software that can make your executable posix shell script unreadable but executable?</description>
      <pubDate>Fri, 04 Jun 2004 01:59:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295836#M182995</guid>
      <dc:creator>Mark Philip L. Castro</dc:creator>
      <dc:date>2004-06-04T01:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295837#M182996</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;not sure exactly what you are trying to achieve but try this&lt;BR /&gt;&lt;BR /&gt;cp /usr/bin/sh ~&lt;BR /&gt;cd ~&lt;BR /&gt;chmod 111 ./sh&lt;BR /&gt;&lt;BR /&gt;ls -l ./sh&lt;BR /&gt;&lt;BR /&gt;./sh&lt;BR /&gt;&lt;BR /&gt;you have an executable shell with no read permissions&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Fri, 04 Jun 2004 02:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295837#M182996</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-06-04T02:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295838#M182997</link>
      <description>Rephrasing my question, is there any way I can hide the contents of a posix shell SCRIPT so as to make the file executable but not readable?</description>
      <pubDate>Fri, 04 Jun 2004 02:47:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295838#M182997</guid>
      <dc:creator>Mark Philip L. Castro</dc:creator>
      <dc:date>2004-06-04T02:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295839#M182998</link>
      <description>Try the following:&lt;BR /&gt;&lt;BR /&gt;chmod ugo-rw &amp;lt;script&amp;gt;.sh</description>
      <pubDate>Fri, 04 Jun 2004 02:53:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295839#M182998</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2004-06-04T02:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295840#M182999</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I do not think it is possible to compile a shell script to achieve this. You can however compile perl which will hide the code.&lt;BR /&gt;&lt;BR /&gt;John.</description>
      <pubDate>Fri, 04 Jun 2004 02:54:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295840#M182999</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-06-04T02:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295841#M183000</link>
      <description>I think Antunes is mistaken the script will not execute without read permission.&lt;BR /&gt;&lt;BR /&gt;carrjo% chmod 111 test&lt;BR /&gt;carrjo% ls -la&lt;BR /&gt;total 418&lt;BR /&gt;drwxr-xr-x   2 carrjo   root          96 Jun  4 08:51 .&lt;BR /&gt;drwxr-xr-x  23 root     root        1024 May 27 13:56 ..&lt;BR /&gt;-rw-------   1 carrjo   1494           4 Jun  4 08:37 .sh_history&lt;BR /&gt;-rw-r--r--   1 carrjo   1494           0 Mar 17 14:47 foo&lt;BR /&gt;---x--x--x   1 carrjo   1494      209136 Jun  4 08:36 ksh&lt;BR /&gt;---x--x--x   1 carrjo   1494          53 Jun  4 08:51 test&lt;BR /&gt;----------   1 carrjo   1494          29 Mar 17 14:27 testfile&lt;BR /&gt;carrjo% ./test&lt;BR /&gt;./test: ./test: cannot open&lt;BR /&gt;carrjo% chmod 555 test&lt;BR /&gt;carrjo% ls -la&lt;BR /&gt;total 418&lt;BR /&gt;drwxr-xr-x   2 carrjo   root          96 Jun  4 08:51 .&lt;BR /&gt;drwxr-xr-x  23 root     root        1024 May 27 13:56 ..&lt;BR /&gt;-rw-------   1 carrjo   1494           4 Jun  4 08:37 .sh_history&lt;BR /&gt;-rw-r--r--   1 carrjo   1494           0 Mar 17 14:47 foo&lt;BR /&gt;---x--x--x   1 carrjo   1494      209136 Jun  4 08:36 ksh&lt;BR /&gt;-r-xr-xr-x   1 carrjo   1494          53 Jun  4 08:51 test&lt;BR /&gt;----------   1 carrjo   1494          29 Mar 17 14:27 testfile&lt;BR /&gt;carrjo% ./test&lt;BR /&gt;hello world&lt;BR /&gt;***********&lt;BR /&gt;ss1025:carrjo%&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Jun 2004 02:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295841#M183000</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-06-04T02:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295842#M183001</link>
      <description>Your're wright John, if I canÂ´t read it, I canÂ´t execut</description>
      <pubDate>Fri, 04 Jun 2004 03:03:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295842#M183001</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2004-06-04T03:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295843#M183002</link>
      <description>Look at this shell compiler:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.comeaucomputing.com/faqs/ccshlit.html" target="_blank"&gt;http://www.comeaucomputing.com/faqs/ccshlit.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;These things have been around for a while.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Jun 2004 03:14:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295843#M183002</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2004-06-04T03:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295844#M183003</link>
      <description>where can I download or acquire this compiler?</description>
      <pubDate>Fri, 04 Jun 2004 03:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295844#M183003</guid>
      <dc:creator>Mark Philip L. Castro</dc:creator>
      <dc:date>2004-06-04T03:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295845#M183004</link>
      <description>Mark&lt;BR /&gt;&lt;BR /&gt;you will have problems if you use the ccsh compiler Steve has pointed you to it is NOT the posix shell you have mentioned. You may be able to change your scripts to be the bourne shell then compile the script of course.&lt;BR /&gt;&lt;BR /&gt;John.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Jun 2004 04:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295845#M183004</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-06-04T04:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295846#M183005</link>
      <description>You can do this by writing/compiling a small c program on the lines below:&lt;BR /&gt;&lt;BR /&gt;#file1.c&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;system("shell_script");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;cc file1.c -o file1&lt;BR /&gt;&lt;BR /&gt;Now file1 is executable and the script file shell_script can be hidden.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Fri, 04 Jun 2004 04:29:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295846#M183005</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-06-04T04:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Compiler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295847#M183006</link>
      <description>I'll second that.  Many people trust shell compilers but I wouldn't personally.&lt;BR /&gt; &lt;BR /&gt;And you definately can't execute anything without read access.&lt;BR /&gt; &lt;BR /&gt;There is one possiblity that comes to mind and that is to compress your scripts or even encrypt them but have a C program that you use as a decrypter/runner.  Users have to use your  C program to run the script.&lt;BR /&gt; &lt;BR /&gt;I would ask why you need to do this.  If it's a script that contains passwords or such like, there is nearly always a better way to achieve   it.  If it contains other sensitive information, just encrypt the parts of the code that are sensitive and get the script itself to decrypt that and use "eval" or some thing to run that portion of code.</description>
      <pubDate>Fri, 04 Jun 2004 04:34:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-compiler/m-p/3295847#M183006</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-06-04T04:34:27Z</dc:date>
    </item>
  </channel>
</rss>

