Re: [ot] NetBSD

2001-03-20 Thread Dominic Mitchell

On Tue, Mar 20, 2001 at 01:20:19PM +, Dominic Mitchell wrote:
 Resetting the root password is not too difficult, I think (I'm more
 used to FreeBSD, this will /probably/ work.  Once booted into single
 user mode, do:
 
 # mount -u /
 # ed /etc/master.passwd
 1s/:[^:]*/:/
 p
 w
 q
 # pwd_mkdb /etc/master.passwd

That should probably be (according to the vipw source):

# pwd_mkdb -p /etc/master.passwd

 # exit

-Dom



Re: [ot] NetBSD

2001-03-20 Thread Dominic Mitchell

On Tue, Mar 20, 2001 at 01:20:19PM +, Dominic Mitchell wrote:
 I'm not totally certain things are the same on NetBSD, but you should be
 able to get going, by looking at this and the man pages on
 www.netbsd.org.

You may also want to use the source code:

ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-release-1-5/src/

-Dom



Re: [ot] NetBSD

2001-03-20 Thread Dominic Mitchell

On Tue, Mar 20, 2001 at 01:08:22PM +, David Cantrell wrote:
 A quick question for all the BSD people.
 
 How do I boot NetBSD into single-user mode?  In case it matters, this is
 on Sparc.
 
 A pint for whoever helps me reset the root password :-)

ok boot -s

You may need variations on this to boot from the correct device (eg:
"boot cdrom -s".  This assumes you have a v2 prom or newer, which you
probably do (my old sparc 2 has one).

Resetting the root password is not too difficult, I think (I'm more
used to FreeBSD, this will /probably/ work.  Once booted into single
user mode, do:

# mount -u /
# ed /etc/master.passwd
1s/:[^:]*/:/
p
w
q
# pwd_mkdb /etc/master.passwd
# exit

And it should come back up in multi-user mode, with root having no
password.  The pwd_mkdb command recreates the /etc/pwd.db and
/etc/spwd.db databases, which is just used for quick lookup.  Normally,
you'd use vipw(8) and get this done automatically.

I'm not totally certain things are the same on NetBSD, but you should be
able to get going, by looking at this and the man pages on
www.netbsd.org.

-Dom



Re: [ot] NetBSD

2001-03-20 Thread David Cantrell

Summary:

pwd_mkdb didn't work, so I tried re-installing (it was a fresh install I'd
broken anyway).  I then proceded to get very annoyed with the NetBSD
installer, because it doesn't let you go back and correct your stupid
mistakes.  And then installed Debian.

-- 
David Cantrell | [EMAIL PROTECTED] | http://www.cantrell.org.uk/david/

This is a signature.  There are many like it but this one is mine.

** I read encrypted mail first, so encrypt if your message is important **

 PGP signature


Re: [ot] NetBSD

2001-03-20 Thread Dominic Mitchell

On Tue, Mar 20, 2001 at 05:53:32PM +, David Cantrell wrote:
 Summary:
 
 pwd_mkdb didn't work, so I tried re-installing (it was a fresh install I'd
 broken anyway).  I then proceded to get very annoyed with the NetBSD
 installer, because it doesn't let you go back and correct your stupid
 mistakes.  And then installed Debian.

Wuss.  ;-)

Actually, you might want to try OpenBSD.  I don't think its as stable on
sparc as NetBSD, but the installer is loads nicer.

I always preferred the NetBSD 1.1 installer, which basically dumped you
in a shell and gave you "disklabel", "newfs", "tar" and a couple of
others.  Very effective.

-Dom