1751800 Members
4982 Online
108781 Solutions
New Discussion юеВ

Re: bash

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

Re: bash

what does following command give?
type bash
id
There is no substitute to HARDWORK
Patrick Wallek
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.
RAC_1
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
Bahman Hedayati
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
Alex Lavrov.
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)
Bahman Hedayati
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
Alex Lavrov.
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)
Bahman Hedayati
Occasional Advisor

Re: bash


Hello!

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

Thanks
H.Merijn Brand (procura
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