Re: bash by default for root user



Hello Nyco


> We wish to use bash as the default shell for the superuser root.
> But it is located in /usr/local/bin/bash... which is in /usr, and not
> in /... I fear we couldn't login in single-user mode...
> Have you tried this? Which is your solution?

I addedd the following to ~root/.profile

if [ -f /usr/local/bin/bash ] ; then
export SHELL=/usr/local/bin/bash
echo "/usr is mounted, so we can use the bash\n"
/usr/local
exit

else
export SHELL=/sbin/sh
echo "bash is not available, so we keep /sbin/sh\n"
fi

best regard, Florian

.



Relevant Pages

  • bash by default for root user
    ... We wish to use bash as the default shell for the superuser root. ... I fear we couldn't login in single-user mode... ...
    (comp.sys.hp.hpux)
  • Re: bash by default for root user
    ... We wish to use bash as the default shell for the superuser root. ... I fear we couldn't login in single-user mode... ...
    (comp.sys.hp.hpux)
  • Re: bash by default for root user
    ... I fear we couldn't login in single-user mode... ... Do you care to explain why? ...
    (comp.sys.hp.hpux)
  • Re: Re: automatic immediate logout after login problem...
    ... I paid good money for a system that I cannot login to and at this ... now than it would be to switch operating systems. ... the fear of hackers has created a fear to repair ... Visit Topic URL to contact author (reg. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: bash by default for root user
    ... I fear we couldn't login in single-user mode... ... Wisdom Teeth are impacted, people are affected by the effects of events. ...
    (comp.sys.hp.hpux)