From owner-freebsd-questions Wed Nov 8 20:42:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtppop2pub.verizon.net (smtppop2pub.gte.net [206.46.170.21]) by hub.freebsd.org (Postfix) with ESMTP id 6955A37B479 for ; Wed, 8 Nov 2000 20:42:28 -0800 (PST) Received: from Ath (cable7-023.gte.net [24.96.36.23]) by smtppop2pub.verizon.net with SMTP ; id WAA50689299 Wed, 8 Nov 2000 22:40:33 -0600 (CST) From: "John Bolster" To: "Chris Hill" Cc: Subject: RE: problem with passwords file Date: Wed, 8 Nov 2000 23:42:35 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thank you all for your replies. I could still log in. I ran view and I saw the correct root user line at the top, but another root user line as the last entry with a number of 1000 instead of 0. I deleted this line and the whole problem went away. I'll just stick to using vipw instead of adduser for editing after this. Thanks, John Bolster > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Chris Hill > Sent: Wednesday, November 08, 2000 8:26 PM > To: John Bolster > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: problem with passwords file > > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message