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-11-08)

440.   What are rainbow tables?   [aestetix/2006-10-06]
439.   What is a moldograph? What is moldography?   [jake/2006-09-11]
406.   What are the different types of Rape Juice(tm) to quench a healthy thirst?   [n0b0dy/2004-03-08] ( leif/2004-03-09 )
394.   I've heard of RTFM, but what does STFW mean?   [matt/2003-11-12] ( matthew/2004-08-11 )
366.   What is a really good german street map website?   [jake/2003-07-10]
329.   How do I get music for my experimental noise club?   [jake/2002-10-05]
316.   Ericsson Test Mode - Cellular Wiretaping   [brad/2002-05-15]
314.   How can you talk to deaf people on the phone? (Thanks Mr. Jeff Young)   [jake/2002-05-11]
312.   Who is Bill Gates's (of microsoft fame) ?   [jake/2002-05-01]
298.   what is the equivalent to strace on openBSD?   [jesse/2001-12-28]
294.   how do i find out what subdomains are in a dns zone?   [jesse/2001-12-06]
293.   where can i find data about the most common names in the USA?   [jesse/2001-12-05]
291.   Should I solder my Sound Card into my computer?   [strick/2002-02-04]
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]
240.   Where can I find black and white photos of people and places in San Francisco?   [rupe/2001-06-05]
224.   Which Yak people have been in the news recently?   [rupe/2001-05-24] ( macki/2001-05-29 )
187.   So when's the BIG PARTY?   [strick/2002-01-23] ( nana/2001-03-22 nana/2001-03-21 macki/2001-03-04 )
173.   What's in the strawberry flavouring of a Burger King Milkshake?   [rupe/2001-02-06]
171.   How do I read a huge file line by line in Python, without loading the entire thing into memory first?   [rupe/2001-02-01] ( enki/2003-10-20 )
157.   In the intro to the Everclear song "A.M. Radio", what does the reference to KHJ Radio, Los Angeles refer to?   [rupe/2001-01-01]
135.   Why shouldn't I use RH7?   [rupe/2000-10-12]
130.   How do I resolve the incompatibility of many older Mac applications with OS9?   [rupe/2000-10-08]
77.   How do I read from standard input using a Python script?   [rupe/2000-04-21]
51.   I'm playing with dialpad.com -- What's the USGS earthquake info phone #?   [strick/2000-02-06]