Re: Breaking password on FreeBSD 5.2.1 box

From: Nikolas Britton (freebsd_at_nbritton.org)
Date: 11/27/04

  • Next message: David Jenkins: "Re: Raq_Apache_dot_htaccess"
    Date: Sat, 27 Nov 2004 10:20:28 -0600
    To: Andrew Lewis <al@xms.co.za>
    
    

    Andrew Lewis wrote:

    >Hi list,
    >
    >We have a client running a fBSD 5.2.1 box that needed its root password
    >hacked.
    >
    >I couldn't boot into single user mode w/o the root password, so I
    >installed fBSD 5.3 on another machine, and slaved the drive from the
    >5.2.1 box in mine.
    >
    >
    What?

    Step 1: Boot the computer.
    Step 2: At the FreeBSD boot menu select "Escape to loader prompt"
    Step 3: Type in "boot -s" and hit enter.
    Step 4: Hit enter when it asks you what shell you want to use.
    Step 5: Type in "cat /etc/fstab" and hit enter.
    Step 6: Mount / and /usr, "mount /dev/foobar /", "mount /dev/foobar /usr".
    Step 7: Type in "passwd" and hit enter.
    Step 8: Type in new password and hit enter.
    Step 9: Retype in new password and hit enter.
    Step 10: type in "reboot" and hit enter.

    I just try'ed it with FreeBSD 4.10 and 5.3 and it worked for both of them.

    _______________________________________________
    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: David Jenkins: "Re: Raq_Apache_dot_htaccess"

    Relevant Pages

    • Re: Reset root password
      ... >> figure out how to reset it. ... >> Is there a way that i can reset the root password from the system ... > Depends on which boot loader you use ... > Hit e to get to the edit mode ...
      (comp.os.linux.security)
    • Re: lost bootable linux password
      ... > Hello I am using a live bootable-linux, Adios, and forgot the root password. ... If your boot menu has a "failsafe" selection, ... Hit e to get to the edit mode ...
      (alt.os.linux.redhat)
    • RE: Forget Root Password
      ... I forget the root password what can i do, so i cant log in to freebsd ... during boot up there's a prompt which says to hit enter to boot /kernel or ... Hit any other ... then get a shell prompt where you run these commands: ...
      (freebsd-questions)
    • Re: help i forgot my password
      ... > to re-install the whole thing or to change the root password. ... I suppose this is a faq, but anyway, during boot up there's a prompt ... which says to hit enter to boot /kernel or something like that. ...
      (freebsd-newbies)
    • looking for a rescue disk for RH 6.0
      ... I have an old Fujitsu operating on RedHat 6.0, and, even though I have ... with this "new" release you can no longer boot on rescue mode, ... have recorded a rescue disk from you system. ... then I used to enter root password as required, ...
      (comp.os.linux.setup)