Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2001 02:12:56 +0100
From:      Andrew Boothman <andrew@cream.org>
To:        Deryck Madarang <deryckus@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: help pls!
Message-ID:  <01090202125600.00411@spatula.home>
In-Reply-To: <20010901235325.61033.qmail@web20409.mail.yahoo.com>
References:  <20010901235325.61033.qmail@web20409.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 02 September 2001 12:53 am, Deryck Madarang wrote:
> Am I screwed? Or is there a way to log back in and
> rebuild what was lost.

I don't think you are totally "screwed", but if your box is refusing to start 
normally then you can always boot into single user mode by pressing a key 
during the 10 second wait before the kernel starts, and typing "boot -s" 
without the quotes. That should get you into a working system, without any 
services running. You can then type "mount -a" without the quotes to get the 
system to remount its filesystems.

Now, if you are missing your /etc/spwd.db file, it can be recreated from your 
/etc/master.passwd easily. You should use the "vipw" command to check that 
your account details are correct, and if you make any changes vipw will 
automatically make and install a new /etc/spwd.db. If you don't make any 
changes you can use "pwd_mkdb /etc/master.passwd" to reinstall the files 
yourself.

One note, if you've never used vipw before, you should know that you are 
using an editor called vi, and all Unix users should know how to use vi! Move 
the cursor to the place you want to add or remove text and press 'a' to alter 
text by typing, or 'x' to remove characters. You can move back to 'command 
mode' by pressing escape. When in command mode you can use 'a' and 'x' as 
explained above, or you can use ":q!" to quit without saving or ":wq" to quit 
with saving.

Hope that helped!

P.S. Please try to use more informative subject lines in your messages to 
this mailing list in future. "Help pls!" does nothing to tell the people here 
what your question is about. See http://www.lemis.com/questions.html for this 
and lots of other great pointers about how to use this list.

-- 
Andrew Boothman <andrew@cream.org>
http://sour.cream.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01090202125600.00411>