by ross

I am stupid and forgot my root password for my OpenBSD box. Now what?!?!

Boot into single user mode, by booting your kernel with the "-s" option Eg: "bsd -s" on i386, "b bsd -s"
or "boot bsd -s" on SPARC, "boot -file bsd -flags s" on Alpha, etc.. 

Fsck and mount the root filesystem, along with /usr if it's on a separate partition. Eg: "fsck /",
"mount /", and maybe "fsck /usr", "mount /usr". 

"passwd" - and change it to something you remember. 

"exit" - to continue booting into multi-user mode.

 


 
Read more of   The Yak's Frequently Questioned Answers   (mod.2008-06-12)

420.   How can I use a new 40 Gig iPod with Debian and USB   [jake/2005-03-01]
399.   What are some common methods of radio-based navigation?   [overcode/2004-01-03]
341.   Can you give me some pointers for using gpg/pgp and other encryption?   [jake/2002-12-19]
335.   What is Bob?   [gopherdave/2002-11-04]
334.   How can you stop neutrinos?   [strick/2004-07-19]
321.   what is jesse's first rule of backpacking?   [jesse/2002-08-13]
280.   How do i stop konqueror from opening a new window when i go to a site using a plugin i dont have?   [jesse/2001-10-30]
268.   how does jesse set the time on his palm pilot?   [jesse/2001-08-19] ( combee/2001-11-01 )
225.   What do I use to write cool Palm software?   [combee/2001-11-01] ( combee/2001-09-21 )
101.   Where can I find tech support anecdotes?   [rupe/2000-06-12]
94.   How do I boot my Sparc Classic/Sparc Classic X/Sparc 5/Sparc 10 without a keyboard or monitor?   [rupe/2000-05-12]
81.   How do I do port-forwarding with ssh?   [robey/2001-03-25]
56.   Hows do i make bogus IDENTD   [ross/2000-02-11] ( jesse/2000-11-15 strick/2000-10-30 )
24.   Why is the ocean blue?   [simon/2000-01-20]