Re: bad root shell

From: Scott I. Remick (scott_at_sremick.net)
Date: 12/21/03

  • Next message: Aaron: "Re: How to Upgrade OpenLDAP"
    To: freebsd-questions@freebsd.org
    Date: Sat, 20 Dec 2003 23:32:21 -0500
    
    

    On Sat, 20 Dec 2003 09:44:17 -0800, Mark McConnell wrote:

    > An error in a pw* script inserted a non-existent shell into the password
    > database, effectively locking out root.
    >
    > I used a fixit disk to correct the problem, using this procedure:

    Unless I'm missing something, seems like the long way to do this. Last
    time I did this to myself, I did the following:

    1) Log in as a user who can su to root.
    2) Use su -m to su to root without changing your current shell
    3) As root, use chpass -s to change your shell to a working one.

    Of course, this won't work if your only account is "root" or you don't
    have anyone else in the wheel group, so maybe it doesn't apply to you.

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


  • Next message: Aaron: "Re: How to Upgrade OpenLDAP"

    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)