*BSD News Article 72165


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!news.uoregon.edu!symiserver2.symantec.com!usenet
From: tedm@agora.rdrop.com
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Booting into Single User Mode
Date: 27 Jun 1996 05:36:48 GMT
Organization: Symantec Corporation
Lines: 24
Message-ID: <4qt6lg$dkd@symiserver2.symantec.com>
References: <DtM9Az.Equ@caprica.com>
Reply-To: tedm%toybox@agora.rdrop.com
NNTP-Posting-Host: 198.6.34.3
X-Newsreader: IBM NewsReader/2 v1.2

In <DtM9Az.Equ@caprica.com>, ktaira@caprica.com (Kenneth Taira) writes:
>Having spent a few hours going through the FAQ and available documentation,
>am here, hat-in-hand, asking for assistance.
>
>Embarassing but true, I changed the operator, and both root passwords and
>have lost the yellow post-it note that I wrote the passwords on.  After a
>number of attempts to use Control-C to force system into Single-usr mode,
>I can see the password and shadow files, but I cannot get at /usr/bin, etc. 
>directories to run either an editor or passwd to get at it and am woefully 
>inept with sh.
>
>Help via e-mail?

This should probably be a FAQ.

Since you brought your system up single-user, /etc/rc and friends wern't run,
and none of the filesystem got mounted thus you cannot see /usr.

You need to mount /usr by hand with /sbin/mount and appropriate
parameters.  Checl /etc/fstab for them, their going to vary depending if
the disk is IDE or SCSI.

You cannot modify the passwd files by hand anyway, you have to use
vipw so the database gets rebuilt properly. (or passwd)