From owner-freebsd-questions Sun Sep 9 10:37: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.ms-agentur.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 32EA537B405 for ; Sun, 9 Sep 2001 10:36:57 -0700 (PDT) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.ms-agentur.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id TAA23995; Sun, 9 Sep 2001 19:45:58 +0200 Message-ID: <3B9BA8B2.9080804@i-clue.de> Date: Sun, 09 Sep 2001 19:36:50 +0200 From: Christoph Sold User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:0.9.3+) Gecko/20010905 X-Accept-Language: de, en MIME-Version: 1.0 To: Nathan Vingoe Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Passwd file corupt References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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. Re-mount your disks read-write by issuing mount -a -w in single user 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.. copy /etc/master.passwd to /etc/passwd, then replace all encrypted password fields by *. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message