Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Oct 1997 00:56:40 +0930
From:      Mike Smith <mike@smith.net.au>
To:        Jamie Bowden <jamie@itribe.net>
Cc:        chat@FreeBSD.ORG
Subject:   Re: SQL Interface - very wild idea (WAS: Browser interface) 
Message-ID:  <199710021526.AAA00601@word.smith.net.au>
In-Reply-To: Your message of "Thu, 02 Oct 1997 10:55:04 -0400." <199710021452.KAA11347@gatekeeper.itribe.net> 

next in thread | previous in thread | raw e-mail | index | archive | help

> And how exactly does one repair this monstrosity when it suffers from
> corruption?  I can edit a passwd file manually from a shell given from a
> fixit floppy, how does one repair a damaged database?

A text file is just a group of bytes with a particular organisation; a 
database is no different.  Worst case you unpack the database into text 
form and feed it into an editor, then repack it on the way back.

See the password database for how this is already done.  See also the 
creation of /etc/passwd for backwards compatability; this approach is 
likely to be popular long after the authoratative version of the data 
is buried in a database.

mike





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