Re: bash by default for root user



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


.



Relevant Pages

  • 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)
  • 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: SSH Tunneling without console login
    ... > that the command will also login onto PC2. ... > not give a shell prompt, ... I only need SSH ... > tunneling purposes, i login to the remote server ...
    (SSH)
  • Environment Poisoning and login -p
    ... login -p can be used to propagate environment flags ... in order to trojan the user shell of the target account. ... I will note that in -CURRENT, both "nologin" and /bin/sh ...
    (FreeBSD-Security)