Re: bash (825 Views)
Reply
Occasional Advisor
Bahman Hedayati
Posts: 9
Registered: ‎02-18-2001
Message 1 of 20 (837 Views)

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!
Honored Contributor
RAC_1
Posts: 5,920
Registered: ‎03-21-2002
Message 2 of 20 (837 Views)

Re: bash

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

Anil
There is no substitute to HARDWORK
Honored Contributor
TwoProc
Posts: 2,202
Registered: ‎01-11-1999
Message 3 of 20 (837 Views)

Re: bash

What are the permissions?
type the following:
ll `which bash`
Let us know what it says.
"[That boy] is about as sharp as a sack of wet mice" - Foghorn Leghorn
Occasional Advisor
Bahman Hedayati
Posts: 9
Registered: ‎02-18-2001
Message 4 of 20 (837 Views)

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
RAC_1
Posts: 5,920
Registered: ‎03-21-2002
Message 5 of 20 (837 Views)

Re: bash

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

What does it say??
There is no substitute to HARDWORK
Honored Contributor
RAC_1
Posts: 5,920
Registered: ‎03-21-2002
Message 6 of 20 (837 Views)

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
Bahman Hedayati
Posts: 9
Registered: ‎02-18-2001
Message 7 of 20 (837 Views)

Re: bash

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

Honored Contributor
RAC_1
Posts: 5,920
Registered: ‎03-21-2002
Message 8 of 20 (837 Views)

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
Bahman Hedayati
Posts: 9
Registered: ‎02-18-2001
Message 9 of 20 (837 Views)

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
RAC_1
Posts: 5,920
Registered: ‎03-21-2002
Message 10 of 20 (837 Views)

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
Bahman Hedayati
Posts: 9
Registered: ‎02-18-2001
Message 11 of 20 (837 Views)

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
RAC_1
Posts: 5,920
Registered: ‎03-21-2002
Message 12 of 20 (837 Views)

Re: bash

what does following command give?
type bash
id
There is no substitute to HARDWORK
Honored Contributor
Patrick Wallek
Posts: 13,774
Registered: ‎06-21-2000
Message 13 of 20 (837 Views)

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
RAC_1
Posts: 5,920
Registered: ‎03-21-2002
Message 14 of 20 (837 Views)

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
Bahman Hedayati
Posts: 9
Registered: ‎02-18-2001
Message 15 of 20 (837 Views)

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
Alex Lavrov.
Posts: 1,270
Registered: ‎11-16-2002
Message 16 of 20 (837 Views)

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
Bahman Hedayati
Posts: 9
Registered: ‎02-18-2001
Message 17 of 20 (837 Views)

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
Alex Lavrov.
Posts: 1,270
Registered: ‎11-16-2002
Message 18 of 20 (837 Views)

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
Bahman Hedayati
Posts: 9
Registered: ‎02-18-2001
Message 19 of 20 (837 Views)

Re: bash


Hello!

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

Thanks
Honored Contributor
H.Merijn Brand (procura
Posts: 6,188
Registered: ‎10-13-1997
Message 20 of 20 (825 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.