*BSD News Article 44112


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!gatech!howland.reston.ans.net!xlink.net!xlink100!ka.sub.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!uni-regensburg.de!fauern!gs.dfn.de!news.gwdg.de!switzel
From: switzel@gwdu19.gwdg.de (Stefan Witzel)
Newsgroups: comp.os.386bsd.questions
Subject: Re: How do one regain 'root' passwd?
Date: 15 May 1995 12:31:44 GMT
Organization: GWDG, Goettingen
Lines: 28
Message-ID: <3p7hjg$5ij@gwdu19.gwdg.de>
References: <3ojm1n$ago@newsbf02.news.aol.com> <3oukqv$phs@tipellium.apana.org.au>
NNTP-Posting-Host: gwdu08-fddi.gwdg.de
X-Newsreader: TIN [version 1.2 PL2]

Leigh Hart (hart@apanix.apana.org.au) wrote:
: 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?  

 ........     

: boot single user (-s)

: # fsck -p
: # mount -u /
: # passwd root

: ...

: # ^D

And how prevent this ?

Stefan Witzel                                        email: switzel@gwdg.de
Universitaet Goettingen / Stabsstelle DV             fon: (49) 551 394160
Gosslerstrasse 5/7                                   fax: (49) 551 399612
37073 Goettingen                                     --------------------------