1753761 Members
4734 Online
108799 Solutions
New Discussion юеВ

Re: bash

 
Bahman Hedayati
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 19
RAC_1
Honored Contributor

Re: bash

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

Anil
There is no substitute to HARDWORK
TwoProc
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
Bahman Hedayati
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
RAC_1
Honored Contributor

Re: bash

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

What does it say??
There is no substitute to HARDWORK
RAC_1
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
Bahman Hedayati
Occasional Advisor

Re: bash

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

RAC_1
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
Bahman Hedayati
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
RAC_1
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