Operating System - HP-UX
1824297 Members
4886 Online
109669 Solutions
New Discussion юеВ

Change root shell from sh to bash on hp-ux

 
Pedro Cirne
Esteemed Contributor

Change root shell from sh to bash on hp-ux

Hi,

Does any one know if there is any problem on changing the shell of root from sh to bash on hp-ux?

Thank you,

Pedro
5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: Change root shell from sh to bash on hp-ux

Never do this in /etc/passwd.

Your system will become un-bootable, because it needs the /sbin/sh to boot up.

Once logged in, simply run bash.

IMHO there is no need to do this ;-)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Andrew Young_2
Honored Contributor

Re: Change root shell from sh to bash on hp-ux

Hi Pedro

I agree, leave root with its default shell. There are too many risks involved in changing it to any other. I don't see any logical reason to use any other shell that cannot be achieved by starting bash from the commandline once you have openned a root session.

Regards

Andrew Y
Si hoc legere scis, nimis eruditionis habes
Oviwan
Honored Contributor

Re: Change root shell from sh to bash on hp-ux

Hey

You could change your shell after login:
# echo $0
-sh
# ksh
# echo $0
ksh
# sh
# echo $0
sh
# exit
# exit
# echo $0
-sh

hope this helps

Regards
Pedro Cirne
Esteemed Contributor

Re: Change root shell from sh to bash on hp-ux

Hi,

I agree with you, I just wanted to have second opinion :)

Thank you all,

Pedro
Nagashankarp
Frequent Advisor

Re: Change root shell from sh to bash on hp-ux

i tried it once and had loads of issues, let it be sh itself.. may be use the root profile to run bash if you like to