- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: bash not executable
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 04:21 AM
тАО10-25-2007 04:21 AM
sh: /usr/local/bin/bash: Execute permission denied.
I thought it might be a simple permission problem , but everyone has execute permissions:
# ls -la /usr/local/bin/
total 27056
dr-xr-xr-x 2 bin bin 8192 Oct 24 16:38 .
dr-xr-xr-x 14 bin bin 8192 Oct 24 16:38 ..
-rwxr-xr-x 1 root sys 18452 Mar 15 2007 autopoint
-rwxr-xr-x 1 root sys 2016356 Mar 21 2007 bash
-r-xr-xr-x 1 root sys 6859 Mar 21 2007 bashbug
-rwxr-xr-x 1 root sys 3658 Apr 16 2007 c_rehash
-rwxr-xr-x 1 root sys 144452 Mar 15 2007 envsubst
-rwxr-xr-x 1 root sys 144480 Mar 15 2007 gettext
-rwxr-xr-x 1 root sys 4607 Mar 15 2007 gettext.sh
-rwxr-xr-x 1 root sys 40800 Mar 15 2007 gettextize
-rwxr-xr-x 1 root sys 556804 Mar 15 2007 gmake
-rwxr-xr-x 1 root sys 71220 Mar 15 2007 iconv
-rwxr-xr-x 1 root sys 435780 Mar 29 2007 less
-rwxr-xr-x 1 root sys 69040 Mar 29 2007 lessecho
-rwxr-xr-x 1 root sys 70816 Mar 29 2007 lesskey
-rwxr-xr-x 1 root sys 208008 Mar 15 2007 msgattrib
-rwxr-xr-x 1 root sys 207912 Mar 15 2007 msgcat
-rwxr-xr-x 1 root sys 139672 Mar 15 2007 msgcmp
-rwxr-xr-x 1 root sys 207968 Mar 15 2007 msgcomm
-rwxr-xr-x 1 root sys 207792 Mar 15 2007 msgconv
-rwxr-xr-x 1 root sys 207756 Mar 15 2007 msgen
-rwxr-xr-x 1 root sys 139036 Mar 15 2007 msgexec
-rwxr-xr-x 1 root sys 208588 Mar 15 2007 msgfilter
-rwxr-xr-x 1 root sys 344804 Mar 15 2007 msgfmt
-rwxr-xr-x 1 root sys 475200 Mar 15 2007 msggrep
-rwxr-xr-x 1 root sys 279852 Mar 15 2007 msginit
-rwxr-xr-x 1 root sys 278076 Mar 15 2007 msgmerge
-rwxr-xr-x 1 root sys 276664 Mar 15 2007 msgunfmt
-rwxr-xr-x 1 root sys 207856 Mar 15 2007 msguniq
-rwxr-xr-x 1 root sys 144500 Mar 15 2007 ngettext
-rwxr-xr-x 1 root sys 3887776 Apr 16 2007 openssl
-rwxr-xr-x 1 root sys 70536 Mar 15 2007 recode-sr-latin
-rwxr-xr-x 1 root sys 772516 Apr 18 2007 rsync
-rwxr-xr-x 1 root sys 699868 Apr 11 2007 wget
-rwxr-xr-x 1 root sys 1074544 Mar 15 2007 xgettext
-rwxr-xr-x 1 root sys 71120 Mar 15 2007 xmlwf
Anyone have an idea on what it might be?
Thanks for your time.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 04:34 AM
тАО10-25-2007 04:34 AM
Re: bash not executable
should be, at the command prompt, either:
bash
or
/usr/local/bin/bash
things like:
sh bash
will fail....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 04:34 AM
тАО10-25-2007 04:34 AM
Re: bash not executable
should be, at the command prompt, either:
bash
or
/usr/local/bin/bash
things like:
sh bash
will fail....with exactly the message you posted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 04:35 AM
тАО10-25-2007 04:35 AM
Re: bash not executable
I think you mean to do:
# sh -c /usr/local/bin/bash
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 04:36 AM
тАО10-25-2007 04:36 AM
SolutionThe good news is that if bash cannot execute, it cannot do any harm. Why in the Wide World of Sports would anyone want to run bash rather than the POSIX shell on HP-UX? I realize that bash is the world's greatest, most powerful shell but the POSIX while terrible, stupid, bad ... works very well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 04:38 AM
тАО10-25-2007 04:38 AM
Re: bash not executable
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 04:43 AM
тАО10-25-2007 04:43 AM
Re: bash not executable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2007 04:45 AM
тАО10-25-2007 04:45 AM
Re: bash not executable
File reported IA64 and it was a PA-RISC.
Thanks.