*BSD News Article 32554


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!EU.net!ieunet!news.ieunet.ie!jkh
From: jkh@whisker.hubbard.ie (Jordan Hubbard)
Newsgroups: comp.os.386bsd.questions
Subject: Re: [FreeBSD] /etc/master.passwd corrupts itself.  HELP!
Date: 07 Jul 1994 21:13:04 GMT
Organization: Jordan Hubbard
Lines: 29
Message-ID: <JKH.94Jul7211304@whisker.hubbard.ie>
References: <2vhiq0$g6v@agate.berkeley.edu>
NNTP-Posting-Host: whisker.hubbard.ie
In-reply-to: tmonroe@soda.berkeley.edu's message of 7 Jul 1994 18:50:40 GMT

In article <2vhiq0$g6v@agate.berkeley.edu> tmonroe@soda.berkeley.edu (Anthony Monroe) writes:

   myself and as root, and neither of the passwords worked!  I know they're the
   correct ones, unless I changed them in my sleep, someone else changed them
   for me, or the password files simply corrupted itself for some reason.  

That sounds very unlikely.  More likely, you changed something but
*didn't log out* and hence didn't actually discover the problem until
after you'd exited everything and then came back to login again in the
morning.

In any case...


   that going into single-user mode would do something, but I need the root
   partition mounted as readable and writable, not read-only as it insists to
   do.  This is the only way I can think of (other than pray for a miracle) to
   solve this problem.

Read the man page for mount.  The solution is:

	mount -u /dev/<rootpart> /

To reset the R/W bit setting for the rootfs.  Then go fix your password file
and reboot.

					Jordan
--
Jordan K. Hubbard	FreeBSD core team	Clams are your friends