<?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: Problem executing files in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925115#M3911</link>
    <description>hi,&lt;BR /&gt;i guess there is some thing simple which you are overlooking. &lt;BR /&gt;&lt;BR /&gt;1. can u do a ll -d on the directory and post the output.&lt;BR /&gt;2. can u post the script hello.&lt;BR /&gt;3. can u tell the location of bash (which bash)&lt;BR /&gt;&lt;BR /&gt;-balaji</description>
    <pubDate>Thu, 13 Mar 2003 06:37:22 GMT</pubDate>
    <dc:creator>Balaji N</dc:creator>
    <dc:date>2003-03-13T06:37:22Z</dc:date>
    <item>
      <title>Problem executing files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925109#M3905</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I've got a somewhat interesting problem with a Linux Redhat 7 workstation.&lt;BR /&gt;&lt;BR /&gt;The user has created a simple script that will print 'Hello World' on the screen once executed.&lt;BR /&gt;&lt;BR /&gt;The file permission are set to 777 and once executed we get the following error:&lt;BR /&gt;bash: ./hello: Permission denied&lt;BR /&gt;&lt;BR /&gt;So I logged in as root, and the results were the same. We tried creating another small and simple script and the problem persists... so I moved the file to another workstation to see if it would run, and it did - without any errors.&lt;BR /&gt;&lt;BR /&gt;I've checked the passwd file to see if there was anything fishy going on with the groups the user was part of, but i couldnt find any problem.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any ideas ? Is it possible to remove executable permissions on a file system regardless if the 'X' flag is set on specific files ?&lt;BR /&gt;&lt;BR /&gt;Any thoughts or ideas are appreciated.&lt;BR /&gt;&lt;BR /&gt;Chris P.</description>
      <pubDate>Wed, 12 Mar 2003 13:19:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925109#M3905</guid>
      <dc:creator>Admin32</dc:creator>
      <dc:date>2003-03-12T13:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem executing files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925110#M3906</link>
      <description>Do you make sure bash is executeable?&lt;BR /&gt;&lt;BR /&gt;Error "bash: ./hello: Permission denied " can be translated as :&lt;BR /&gt;bash: In the command: ./hello could not execute the interpreter /bin/sh. Reason: Permission denied.&lt;BR /&gt;&lt;BR /&gt;Try: ldd /bin/bash&lt;BR /&gt;&lt;BR /&gt;Check that you have got execute permission for all of the libraries.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Mar 2003 13:55:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925110#M3906</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2003-03-12T13:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem executing files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925111#M3907</link>
      <description>You should check the permissions also of the . and the .. directories too.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 12 Mar 2003 21:07:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925111#M3907</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-03-12T21:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem executing files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925112#M3908</link>
      <description>add in firts line of you script, that is everything for each case if you use &lt;BR /&gt;#!/bin/bash&lt;BR /&gt;or&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;or&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;that is everything</description>
      <pubDate>Wed, 12 Mar 2003 22:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925112#M3908</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2003-03-12T22:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem executing files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925113#M3909</link>
      <description>I don't suppose you could post us the contents of this 'hello world' script?&lt;BR /&gt;&lt;BR /&gt;As you've neglected to even say what the script's name is, all of our responses are going to have a certain amount of guess work in them.&lt;BR /&gt;&lt;BR /&gt;Here's my guess work..&lt;BR /&gt;&lt;BR /&gt;The line that is supposed to print "hello world" has the two words 'hello' and 'world' on it, and that's all, yes?&lt;BR /&gt;&lt;BR /&gt;In order to print to the screen from a shell script, you need to use the command 'echo'.  So to 'print' hello world to the screen from a scrpt, you'd need a line like:&lt;BR /&gt;&lt;BR /&gt;echo hello world&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Mar 2003 00:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925113#M3909</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-03-13T00:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem executing files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925114#M3910</link>
      <description>hi,&lt;BR /&gt;i guess there is some thing simple which you are overlooking. &lt;BR /&gt;&lt;BR /&gt;1. can u do a ll -d on the directory and post the output.&lt;BR /&gt;2. can u post the script hello.&lt;BR /&gt;3. can u tell the location of bash (which bash)&lt;BR /&gt;&lt;BR /&gt;-balaji</description>
      <pubDate>Thu, 13 Mar 2003 06:34:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925114#M3910</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-03-13T06:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem executing files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925115#M3911</link>
      <description>hi,&lt;BR /&gt;i guess there is some thing simple which you are overlooking. &lt;BR /&gt;&lt;BR /&gt;1. can u do a ll -d on the directory and post the output.&lt;BR /&gt;2. can u post the script hello.&lt;BR /&gt;3. can u tell the location of bash (which bash)&lt;BR /&gt;&lt;BR /&gt;-balaji</description>
      <pubDate>Thu, 13 Mar 2003 06:37:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925115#M3911</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-03-13T06:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem executing files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925116#M3912</link>
      <description>You could start this script with  "strace".&lt;BR /&gt;Perhaps it will produce some useful debug info.</description>
      <pubDate>Thu, 13 Mar 2003 09:05:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-executing-files/m-p/2925116#M3912</guid>
      <dc:creator>Tibor Bajnok</dc:creator>
      <dc:date>2003-03-13T09:05:40Z</dc:date>
    </item>
  </channel>
</rss>

