From owner-freebsd-questions Wed Nov 8 17:26:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.monochrome.org (monochrome.org [206.64.112.124]) by hub.freebsd.org (Postfix) with ESMTP id 1B2F737B479 for ; Wed, 8 Nov 2000 17:26:08 -0800 (PST) Received: from localhost (faro [192.168.1.7]) by mail.monochrome.org (8.9.3/8.9.3) with SMTP id UAA65726; Wed, 8 Nov 2000 20:26:05 -0500 (EST) (envelope-from chris@monochrome.org) Date: Wed, 8 Nov 2000 20:26:05 -0500 (EST) From: Chris Hill X-Sender: chris@localhost To: John Bolster Cc: freebsd-questions@FreeBSD.ORG Subject: Re: problem with passwords file In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 7 Nov 2000, John Bolster wrote: > On FreeBSD 4.1 I tried to run adduser on root to try and get rid of the > 'Charlie &' and now adduser says: > > pwd:mkdb: root uid should be 0 > pwd:mkdb: at line #20 > pwd:mkdb: /etc/pw.gXb228: Inappropriate file type or format > > and it refuses to let me change root password or add any users. > > Everything else is still working OK- I can log in just fine. > > Does you know what I can do to fix or rebuild whatever has > been damaged? (and what I shouldn't do again?) It's not certain that anything has been damaged. Can you still log in as root? Try using vipw instead of adduser. Just edit the field where it says 'Charlie &' and you should be OK. HTH. -- Chris Hill chris@monochrome.org [1] Bus error netscape To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message