From owner-freebsd-questions Sun Sep 9 11:18:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from shumai.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id D61FA37B405 for ; Sun, 9 Sep 2001 11:18:42 -0700 (PDT) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.3/8.11.3) with ESMTP id f89IJ4Q29572; Sun, 9 Sep 2001 14:19:04 -0400 (EDT) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Sun, 9 Sep 2001 14:19:04 -0400 (EDT) From: Joe Clarke To: Nathan Vingoe Cc: Subject: Re: Passwd file corupt In-Reply-To: Message-ID: <20010909141737.B29548-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In single user mode, do: fsck -y / Then: mount -uw / Then, vipw and save the file. That will recreate /etc/passwd, pwd.db, and spwd.db. Joe On Sun, 9 Sep 2001, Nathan Vingoe wrote: > Help > > While adding a new user to my server, It crashed.. > > we have got it all coming back up again, but it seems the passwd file in the > /etc folder is now corrup. > > we can therfore only log into single user mode. > > how do we > > 1. get it so we can write to the disk, as it seems to be in read only mode. > > 2. regenerate the passwd file or what do we need to re generste? - we have > got the master.passwd and it seems intact, although, I have never been in > there before.. > > regards > > Nathan > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message