Showing results for 
Search instead for 
Do you mean 

bash

Occasional Advisor

bash

Hello every body!
I did installed Bash-shell on my hu-ux server
My system details are:

CPU Version: PA 8700 CPU Module 2.3
#uname -a
HP-UX herodot B.11.23 U 9000/800 826839601 unlimited-user license

herodot:/ #model
9000/800/A400-6X

herodot:/ #swlist -l fileset | grep -i bash
# Bash B.11.23.20.02 Bourne-Again SHell (2.05b)
Bash.BASH-RUN 2.05b Runtime for Bourne-Again SHell
Bash.BASH-SRC 2.05b Source Code for Bourne-Again Shell

herodot:/ #swlist -l fileset -a state | grep -i bash
# Bash
Bash.BASH-RUN configured
Bash.BASH-SRC configured

herodot:/ #which bash
/usr/local/bin/bash

herodot:/ #ls -l /usr/local/bin/bash
-r-xr-xr-x 1 bin bin 1639408 Mar 4 2003 /usr/local/bin/bash

herodot:/etc #more group
root::0:root
other::1:root,hpdb
bin::2:root,bin
.
?..

Problem is:
I getting ?Execute permission denied? when I try to run ?bash?!

herodot:/ #bash
sh: bash: Execute permission denied.

Wandering if there is any solution?

Thanks!
19 REPLIES
Honored Contributor Honored Contributor

Re: bash

swverify -v "bash_product"
type bash
and then ll "bash_path"

Anil
There is no substitute to HARDWORK
Honored Contributor Honored Contributor

Re: bash

What are the permissions?
type the following:
ll `which bash`
Let us know what it says.
We are the people our parents warned us about --Jimmy Buffett
Occasional Advisor

Re: bash

Thank you so much for Replaying!

herodot:/ #which bash
/usr/local/bin/bash

herodot:/ #ls -l /usr/local/bin/bash
-r-xr-xr-x 1 bin bin 1639408 Mar 4 2003 /usr/local/bin/bash


herodot:/ #swlist -l fileset | grep -i bash
# Bash B.11.23.20.02 Bourne-Again SHell (2.05b)
Bash.BASH-RUN 2.05b Runtime for Bourne-Again SHell
Bash.BASH-SRC 2.05b Source Code for Bourne-Again Shell

herodot:/ #swlist -l fileset -a state | grep -i bash
# Bash
Bash.BASH-RUN configured
Bash.BASH-SRC configured



And There is no â ERRORâ and noâ WARNIGâ
From #swverify -v "bash_product"

T
Honored Contributor Honored Contributor

Re: bash

As a root execute following.
/usr/local/bin/bash

What does it say??
There is no substitute to HARDWORK
Honored Contributor Honored Contributor

Re: bash

As a root execute following.
/usr/local/bin/bash
Also do
file /usr/local/bin/bash

What does it say??
There is no substitute to HARDWORK
Occasional Advisor

Re: bash

Hi!!
herodot:/ #/usr/local/bin/bash
sh: bash: Execute permission denied.

Honored Contributor Honored Contributor

Re: bash

Post all details that we request, this way we can understand your problem better.

What does following commands say??

file /usr/local/bin/bash
type /usr/local/bin/bash

Do you have bash installed on some other (hp-ux) machine?? If yes compare the file sizes and cksum of both files.
There is no substitute to HARDWORK
Occasional Advisor

Re: bash

Hi!
As a root executeting following.
/usr/local/bin/bash

I geting "Execute permission denied".

Yes:I did installed bash on some other (hp-ux) machines. The file size and cksum are same in both machines.

The size of /usr/local/bin/bash file is:
#ls -l /usr/local/bin/bash
-r-xr-xr-x 1 bin bin 1639408 Mar 4 2003 /usr/local/bin/bash

The cksum of /usr/local/bin/bash file is:
3667481921 1639408
Honored Contributor Honored Contributor

Re: bash

You did not answer following.

type /usr/local/bin/bash
file /usr/local/bin/bash

chmod 777 /usr/local/bin/bash

Does it execute now?? Do you have tusc??

tusc -vfp "bash"

Anil
There is no substitute to HARDWORK
Occasional Advisor

Re: bash

Hello!
#type /usr/local/bin/bash
/usr/local/bin/bash is /usr/local/bin/bash

#file /usr/local/bin/bash
/usr/local/bin/bash: ELF-32 executable object file - IA64

#chmod 777 /usr/local/bin/bash
#/usr/local/bin/bash
sh: /usr/local/bin/bash: Execute permission denied.

And I dont have "tusc".

Thanks!
Honored Contributor Honored Contributor

Re: bash

what does following command give?
type bash
id
There is no substitute to HARDWORK
Honored Contributor Honored Contributor

Re: bash

I think the key output is this:

#file /usr/local/bin/bash
/usr/local/bin/bash: ELF-32 executable object file - IA64

The key is the IA64 at the end. It appears that this version of bash was compiled for an Itanium processor. You are attempting to run it on a PA-RISC based machine and that will absolutely NOT work.

Even though you are running 11.23PI on this machine, the code you run must still be compiled for the specific processor type you are running on.

Itanium code will NOT run on a PA-RISC. BUT PA-RISC code can run on Itanium.
Honored Contributor Honored Contributor

Re: bash

I think I got it.
#file /usr/local/bin/bash
/usr/local/bin/bash: ELF-32 executable object file - IA64

You need to get bash for pa-risc.
There is no substitute to HARDWORK
Occasional Advisor

Re: bash

Hello guys!
Yes, you are absolutely right! My server has a PA-RISC CPU.
And the bash-software which I have is for Itanium. And this will not work!

But anyway!
Thank you so much!
IT was valuable help!

Best regards!
Bahman
Honored Contributor Honored Contributor

Re: bash

Did you put it in /etc/shells?


Alex
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Occasional Advisor

Re: bash

Hi!
Yes I put it in the /etc/shells. But it is not working!
Getting
â Execute permission deniedâ .
Best regards!
Bah
Honored Contributor Honored Contributor

Re: bash

Can you post here the output of "cat /etc/shells" ?
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Occasional Advisor

Re: bash


Hello!

#cat /etc/shells
/usr/local/bin/bash
/usr/bin/sh
/usr/bin/ksh
#

Thanks
Highlighted
Honored Contributor Honored Contributor

Re: bash

/etc/shells is only used for redirection work like checking if the shell is valid for login or for ftp

When calling any shell directly from the prompt, /etc/shells doesn't play any role at all.
Enjoy, Have FUN! H.Merijn