Re: Death to toor

From: Jilles Tjoelker (jilles_at_stack.nl)
Date: 06/13/05

  • Next message: Dag-Erling Smørgrav: "Re: Retiring static libpam support"
    Date: Mon, 13 Jun 2005 16:42:33 +0200
    To: Richard Coleman <rcoleman@criticalmagic.com>
    
    

    On Sat, Jun 11, 2005 at 11:38:43PM -0400, Richard Coleman wrote:
    > David O'Brien wrote:
    > >I wouldn't say we are totally safe changing root's default shell away
    > >from /bin/csh. We still see people give the advice that one should not
    > >change root's default shell.

    > That sounds like old school sysadmin conservatism. I don't think there
    > is any technical basis for such advice. I'm not suggesting that the
    > default be changed, since consistency is also a desirable thing (I get
    > irked when I log into a box as root and suddently find that I'm in
    > bash). But I doubt it hurts anything to changes root's shell these days.

    Actually, there is a case where it matters. The following command,
    executed as root, uses the shell field in the passwd entry "root"
    (except if getlogin() returns a different username with uid 0):

    su -m nonrootuserwithinvalidshell -c 'command'

    I sometimes use this in scripts with more complicated commands and then
    it's pretty annoying that that depends on root's shell :(

    -- 
    Jilles Tjoelker
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: Dag-Erling Smørgrav: "Re: Retiring static libpam support"

    Relevant Pages

    • Re: hi all..
      ... and someone gets access your shell account, ... Only root can install an su binary. ... Of course, if I have sudo ...
      (Fedora)
    • 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. ...
      (Fedora)
    • 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 ...
      (freebsd-questions)
    • Re: "No Shell"
      ... There is simply no need to login as root - ever, ... > you don't have to guard(and spread) root's password anymore. ... And change the shell or whatever it s/he just well damn ... Other than that nothing else should depend on root shell, ...
      (comp.unix.admin)
    • Re: Newbie Questions Regarding <SU> Command & Running Periodic Updating
      ... the log in level and root level. ... The first time you suyou become root, but your shell ... the shell environment is left the same except ... sucommand is aliased to add in some other options, ...
      (freebsd-questions)