[806] in netbsd-help mailing list archive

home help back first fref pref prev next nref lref last post

Re: netbsd master.passwd & passwd

daemon@ATHENA.MIT.EDU (Yoav Yerushalmi)
Sun Feb 18 01:43:52 1996

To: ajkim@MIT.EDU
Cc: netbsd-help@MIT.EDU
In-Reply-To: Your message of "Sun, 18 Feb 1996 01:33:32 EST."
             <9602180633.AA08230@alfredo.MIT.EDU> 
Date: Sun, 18 Feb 1996 01:39:50 EST
From: Yoav Yerushalmi <yoav@MIT.EDU>

okay, what I suggest you do is the following:

boot single-user (reboot the machine, and when it initially
prompts you (before the spinning cursor) type '-s'.
then (using either sh or csh) type:
	fsck -p
	mount -a

use vipw to fix the entry for root (make it look like:

root::0:0::0:0:Charlie &:/root:/bin/csh

then, type 'exit'. You should be able to log in as root with no password.
Now, log in as root, and type:
	cp -p /srvd/etc/master.passwd /etc/master.passwd
	pwd_mkdb -p /etc/master.passwd
	/usr/bin/passwd root
to partially fix your password file.
Next, type:
	adduser {all the athena usernames you want to give local accounts to}
You should at least do it with your username.


As for why this happened? I'm not sure. File don't normally get corrupt
by X. Are you sure you didn't spontaenously reboot at some irregular point?

-- 
-----------------------------------------------------------------
| Yoav Yerushalmi         |  My opinions are mine..             |
| M.I.T student at large  |    (I hope..  don't sue)            |
| http://www.mit.edu:8001/afs/sipb/user/yoav/html/homepage.html |
-----------------------------------------------------------------


home help back first fref pref prev next nref lref last post