Date: Mon, 26 Apr 1999 16:28:09 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: David Anderson <DRCAnderson@xtra.co.nz> Cc: Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Help Please - Newbie Adding User Message-ID: <Pine.BSF.4.03.9904261625380.6951-100000@resnet.uoregon.edu> In-Reply-To: <047f01be8f44$3c937f40$9ac4fea9@dynasite98>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9904261625380.6951-100000>