Re: bash by default for root user
- From: whoward@xxxxxxxxxxxxxxxxxxxxxx (W Howard)
- Date: Tue, 16 May 2006 18:34:10 +0000 (UTC)
In article <1147794397.394551.242690@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
nicolas.verite@xxxxxxxxx <nicolas.verite@xxxxxxxxx> wrote:
Hi all,
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...
Very realistic fear. Congratulations on figuring this out BEFORE
you locked yourself out.
Have you tried this?
No. We use "sudo /usr/local/bin/bash" from an ordinary login instead.
Which is your solution?
You could leave root's login shell alone, then add to his .profile
if [ -x /usr/local/bin/bash ] ; then
exec /usr/local/bin/bash
fi
Walt
.
- References:
- bash by default for root user
- From: nicolas.verite@xxxxxxxxx
- bash by default for root user
- Prev by Date: Can I add a font in JetAdmin under HPUX?
- Next by Date: Re: bash by default for root user
- Previous by thread: Re: bash by default for root user
- Next by thread: Re: bash by default for root user
- Index(es):
Relevant Pages
|