From owner-freebsd-questions Wed Jul 24 06:35:41 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA19183 for questions-outgoing; Wed, 24 Jul 1996 06:35:41 -0700 (PDT) Received: from seagull.rtd.com (root@seagull.rtd.com [198.102.68.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA19178 for ; Wed, 24 Jul 1996 06:35:38 -0700 (PDT) Received: (from dgy@localhost) by seagull.rtd.com (8.7.5/8.7.3) id GAA14943; Wed, 24 Jul 1996 06:35:35 -0700 (MST) From: Don Yuniskis Message-Id: <199607241335.GAA14943@seagull.rtd.com> Subject: Re: Cannot add users To: phace@eden.com (Tony Montana) Date: Wed, 24 Jul 1996 06:35:35 -0700 (MST) Cc: dgy@rtd.com, questions@FreeBSD.org In-Reply-To: from "Tony Montana" at Jul 24, 96 07:37:30 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk It seems that Tony Montana said: > On Wed, 24 Jul 1996, Don Yuniskis wrote: > > > > When attempting to execute the 'adduser' command as root on my FreeBSD > > > R2.1 box i get the following: > > > > > > pwd_mkdb: /etc/master.passwd: Permission denied > > > Invalid /etc/master.passwd - cannot add any users! > > > > > > The permissions are set correctly: > > > -rw------- 1 root wheel 1018 Jul 24 03:33 master.passwd > > > > I assume you're running as root at the time? > yes i am root > > > And, the permissions for /etc are OK? > Yes they are correct (see above) No, you demonstrated the permissions for /etc/master.passwd -- I asked about the permissions for /etc -- the directory itself! :> > > Does vipw allow you to manually change/add to the password database > (or, does it blow up, too?) > This is what i get: > > /etc/pw.000623:13 lines, 719 characters. > vipw: rebulding the database... > pwd_mkdb: corrupted entry > pwd_mkdb: at line #13 > pwd_mkdb: /etc/pw.000623: Inappropriate file type or format > re-edit the password file? [y]: Well, there's your problem! :> Take a peak at line 13 and see why it doesn't look right -- check the contents of each field (separated by colons `:') against another *valid* entry (i.e. on lines 1-12) --don