Re: bash by default for root user
- From: Florian Anwander <spam.interessiert.nicht@xxxxxxxxxxxxxx>
- Date: Wed, 17 May 2006 14:00:20 +0200
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
.
- Follow-Ups:
- Re: bash by default for root user
- From: Kevin Collins
- Re: bash by default for root user
- References:
- bash by default for root user
- From: nicolas.verite@xxxxxxxxx
- bash by default for root user
- Prev by Date: Re: Virtual Memory
- Next by Date: pruning files
- Previous by thread: Re: bash by default for root user
- Next by thread: Re: bash by default for root user
- Index(es):
Relevant Pages
|