Re: Root users shell

From: Bill Vermillion (bv_at_wjv.com)
Date: 07/10/04

  • Next message: Jon DeShirley: "Re: Root users shell == no existantshell /bin/bash"
    Date: Sat, 10 Jul 2004 12:34:57 -0400
    To: freebsd-security@freebsd.org
    
    

    > Message: 1
    > Date: Fri, 9 Jul 2004 09:55:40 -0700 (PDT)
    > From: Roger Marquis <marquis@roble.com>
    > Subject: Re: Root users shell == no existant shell /bin/bash
    > To: freebsd-security@freebsd.org
    > Message-ID: <20040709165540.2799D2C1CC@mx5.roble.com>
    > Content-Type: TEXT/PLAIN; charset=US-ASCII

    > "Peter C. Lai" wrote:
    > > as a rule of thumb, you're probably superuser way too much if you
    > > develop an urge to change it shell anyway.

    > Where do people come up with these folk "rules"? I spend all day
    > working in various root shells as part of my job. Couldn't do it
    > otherwise.

    > > 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.

    > In 8 years of BSD administration I've never seen the toor
    > account used. IMO, as a matter of security, KIS, and for
    > improved cross-platform compatibility it should be removed from
    > the distribution.

    I've used it a few times. Since about 1996 I've used the ksh
    as the default root shell on all Unix systems I've admined -
    commercial distributions and FreeBSD. I also set up the
    commericial Unixen to same way FreeBSD does, with /root being
    the owners home directory instead of /. It's one more little
    thing that can help prevent a mistype from removing critical files,
    by accident, or if there is more than one person with root access.

    Having *toor* with the default /bin/sh came in handy.
    Something in the gnu tools had changed and I was having a bizarre
    failure on building a port. Logging out and back in under
    *toor* showed there was an incompatibility between the current
    Gnu approach and the ksh I was running. A quick upgrade
    to the current sources from AT&T/David Korn fixed that.
    Having an alternate and simple shell can be handy.

    I've not had to use toor very often. And I've used the
    live-CD - #2 CD - twice. But it was a lifesaver both times.

    I moved the ISP I was working for in 1995 completely off
    the SGI Challenge servers and the multi $K netscape commercial
    product to FreeBSD and Apache in 1996. Far more speed on
    platforms that weren't as powerful.

    I don't see anything more insecure with having both a root and toor
    account. And I've had exactly ONE security breech. I had missed
    ONE machine on a telnet upgrade - late 1990s. I caught it within
    hours ot the daily security email. I keep them as tight as I can
    as I'm on a 10Gbps backbone - but I've never removed toor.

    But that's just my approach.

    Bill

    -- 
    Bill Vermillion - bv @ wjv . com
    _______________________________________________
    freebsd-security@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-security
    To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
    

  • Next message: Jon DeShirley: "Re: Root users shell == no existantshell /bin/bash"

    Relevant Pages

    • Re: no root login after changing shell
      ... > i wanted to change the shell for user root to bash. ... Don't set a password on the real root account or log in to it. ... Copy the entry for toor and replace the username and the ... - then edit the _copy_ to change the username field from toor to Rclyde ...
      (freebsd-questions)
    • Re: About Freebsd 7.0 versus 6.3
      ... I active toor account with standard shell. ... If you re-install, you're stuck with a GENERIC kernel, unless you ...
      (freebsd-questions)
    • Re: Default users and the passwords
      ... >FreeBSD, like almost all Unix OS, has other default users, like uucp, ... the 'toor' account is locked by default. ... IIRC, the purpose of toor is to have a different shell for root (ie: ...
      (FreeBSD-Security)
    • Re: root & toor
      ... >> toor has bourne shell, ... Does toor own any files on the system, ... All login shells in the FreeBSD base system are statically linked - ... toor owns all the root-owned files on the system:) ...
      (FreeBSD-Security)
    • Re: "No Shell"
      ... >Bourne shell on HP-UX is always fun. ... I've been using /bin/ksh for the root shell on FreeBSD for at least ... As to the 'toor' account it is not there to use as an alternate ... The default root shell on FreeBSD - though called csh is not ...
      (comp.unix.admin)