Re: Re: Root users shell == no existant shell /bin/bash

From: Craig Edwards (
Date: 07/09/04

  • Next message: Dan Langille: "bash as a login shell (was Root users shell == no existant shell /bin/bash)"
    Date: Fri, 9 Jul 2004 21:26:40 +0100
    To: "" <>

    i'm relatively new to freebsd, having moved from linux, and as soon as i found the toor account i deleted it after research deciding that having two uid 0 accounts on my system was a really really bad idea. I guess there are times when its good to have a backup, but then you have to weigh up the costs of auditing that second account with its usefulness. In most compile steps, only one phase of the compile requires root (make install), which cuts down greatly the amount of time you spend as a superuser, and the amount of damage you can do (accidentally or otherwise).


    >Wrote Peter C. Lai:
    >> On Fri, Jul 09, 2004 at 11:58:35AM +0200, Anders Dahlqvist wrote:
    >> > torsdagen den 8 juli 2004 17.29 skrev Brandon Grace:
    >> > > I made a mistake setting my shell and have set the root users shell to
    >> > > /bin/bash instead of /bin/sh. I am curiuos if anyone knows how to fix this.
    >> > > The machines is FreeBSD 4.8-RELEASE-p4 and does not have sudo only su.
    >> >
    >> > ...and I gather that "su - toor" doesn't work either for some reason or other?
    >> toor has a disabled (*) password by default. What Brannon should have done was
    >> set a password for toor in the beginning, without mucking around with root's
    >> shell. But as a rule of thumb, you're probably superuser way too much if you
    >> develop an urge to change it shell anyway.
    >Some of us either have to do extensive work as root (I myself
    >extensively use shell programming on the command line -- which is not
    >easy nor sensible in either csh or tcsh), or find it extremely
    >annoying to use the least favorite shell during an emergency.
    >On the other hand, I've run across a sysadmin who always enables his
    >toor accounts -- and changes its shell to bash. As a result, not only
    >is there an alternate root account (good in case 'root' trampled on by
    >accident or purpose), but you can get root bash as a login shell while
    >leaving the real root to its normal shell.
    >Since then I've adopted this tip on the BSD system I run.
    > -Daniel
    > mailing list
    >To unsubscribe, send any mail to ""

    _______________________________________________ mailing list
    To unsubscribe, send any mail to ""

  • Next message: Dan Langille: "bash as a login shell (was Root users shell == no existant shell /bin/bash)"

    Relevant Pages

    • Re: [opensuse] fdisk results - Carl
      ... root ... In a shell: ... exit from superuser ...
    • Re: hi all..
      ... and someone gets access your shell account, ... Only root can install an su binary. ... Of course, if I have sudo ...
    • Re: smartctl / mpt on 9.0-RC1
      ... me;-) (All ioctl/cam commands require superuser) ... I asked for the root and now waiting for it. ... shell so i will have more boxes to test. ...
    • Re: Kmail offline
      ... GUI sessions as root? ... I will not help you with problems running GUI as root. ... That was a straight copy paste from the shell it ran from. ... checking I could get it to do said the install was all right. ...
    • Re: csh as default root Shell
      ... Another source is the the FreeBSD Handbook that is available ... As for changing the root shell, it is probably not a good idea. ... Put the new root account you created farther down in the passwd file ...