From owner-freebsd-questions Mon Apr 26 16:28:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 68515153EB for ; Mon, 26 Apr 1999 16:28:19 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id QAA09387; Mon, 26 Apr 1999 16:28:10 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Mon, 26 Apr 1999 16:28:09 -0700 (PDT) From: Doug White To: David Anderson Cc: Questions Subject: Re: Help Please - Newbie Adding User In-Reply-To: <047f01be8f44$3c937f40$9ac4fea9@dynasite98> 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 Sun, 25 Apr 1999, David Anderson wrote: > Hi I have logged on as root and are attempting to add myself as a user > with csh shell. > > (i) When I try the adding user via > myname# adduser > > i get the following error report......... > pwd_mkdb:root uid should be 0 > pwd_mkdb: at line 16 > pwd_mkdb: /etc/master.pwd: Inappropriate file type or format. > > (ii) Alternatively using vipw > pwd_mkdb:root uid should be 0 > pwd_mkdb: at line 16 > pwd_mkdb: /etc/master.pwd: Inappropriate file type or format. > re-edit the password file? [y] > > Please can somebody tell me what is happening here? It's trying to tell you something. At line 16 in the password file, root's user ID is not zero. Most likely you messed up the master.passwd format by adding two root entries or something equally silly. See passwd(5) for the proper format. It should look like this: root:encrypted_password:0:0::0:0:Charlie &:/root:/bin/csh encrypted_password will be a string of random characters. Don't change it if you want to log in as root again. :) Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message