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.2010-02-10)

430.   How can I migrate my encrypted gpassman files to ascii?   [jake/2006-05-20]
428.   What is emo surfing (emosurfing)?   [jake/2006-01-21]
418.   What is a comfort vegan?   [jake/2004-12-10]
413.   How can I solve Cisco Catalyst 3550 series issues where a port seems to have died?   [jake/2004-08-23]
406.   What are the different types of Rape Juice(tm) to quench a healthy thirst?   [n0b0dy/2004-03-08] ( leif/2004-03-09 )
319.   why do i get an error "make: don't know how to make /usr/share/tmac/tmac.andoc. Stop" when building a pkg on netbsd?   [jesse/2002-08-10]
***306.   What are the niftiest unicode alphabets?   [strick/2010-02-10]
296.   how do i make a tofurkey?   [jesse/2001-12-10]
294.   how do i find out what subdomains are in a dns zone?   [jesse/2001-12-06]
287.   How do I make a VCD (Video CD)?   [combee/2001-11-19]
271.   I am stupid and forgot my root password for my OpenBSD box. Now what?!?!   [ross/2001-09-05]
207.   how can i access a virtual console greater than 12 in linux?   [jesse/2001-04-03]
201.   Where are Mir, the Shuttle, and the ISS right now?   [rupe/2001-03-22]
195.   why wont my computer boot off of its hard drive?   [jesse/2001-03-11] ( strick/2001-03-12 )
179.   How can I become a hacker?   [strick/2001-06-21] ( rupe/2001-02-28 )
153.   Where can I find Windows drivers for the Baystack 660 802.11 PC Card?   [rupe/2000-12-22]
122.   What is the VAXorcist.?   [rupe/2000-09-25]
120.   What is the Hacker's Manifesto?   [rupe/2001-08-14]
91.   Should the answer to an FQA consist entirely of an external link?   [macki/2000-05-06] ( strick/2002-01-23 )
84.   How do I send mail from a Python script?   [rupe/2000-05-10]
74.   How many roads must a man walk down?   [vonguard/2000-04-04]
62.   What is the diameter of the World Wide Web?   [jamison/2000-04-01]
56.   Hows do i make bogus IDENTD   [ross/2000-02-11] ( jesse/2000-11-15 strick/2000-10-30 )
55.   How can i find out what other websites have links to my website?   [jamison/2000-02-11]