Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!wraith.internode.com.au!tipellium.apanix.apana.org.au!usenet From: hart@apanix.apana.org.au (Leigh Hart) Newsgroups: comp.os.386bsd.questions Subject: Re: How do one regain 'root' passwd? Date: 12 May 1995 03:31:43 GMT Organization: Apanix Public Access Unix, +61 8 373 5485 (5 lines) Lines: 30 Message-ID: <3oukqv$phs@tipellium.apana.org.au> References: <3ojm1n$ago@newsbf02.news.aol.com> NNTP-Posting-Host: seldon.apanix.apana.org.au mclemore@aol.com (McLemore) writes: >We have a free-bsd box that someone else installed and then they forgot >the password for the 'root' account. >How do we get this back without reinstalling the entire system from >scratch? >I tried booting in single-user mode but that just put in my a read-only >mode and even if it didn't, I'd guess it would still probably want me to >KNOW the old passwd to change it. boot single user (-s) # fsck -p # mount -u / # passwd root ... # ^D Cheers Leigh -- | "By the time they had diminished | Leigh Hart | | from 50 to 8, the other dwarves | <hart@eppie.apana.org.au> | | began to suspect 'Hungry' ..." | C/- 195 Gilles Street | | -- Gary Larson, "The Far Side" | Adelaide SA 5006 |