From owner-freebsd-stable Sun Nov 4 13:11:49 2001 Delivered-To: freebsd-stable@freebsd.org Received: from sanctuary.magill.unisa.edu.au (sanctuary.magill.unisa.edu.au [130.220.227.239]) by hub.freebsd.org (Postfix) with ESMTP id 8C48737B405 for ; Sun, 4 Nov 2001 13:11:45 -0800 (PST) Received: from localhost (sayersjm@localhost) by sanctuary.magill.unisa.edu.au (8.11.6/8.11.4) with ESMTP id fA4LCkn63292; Mon, 5 Nov 2001 07:42:47 +1030 (CST) (envelope-from Jarrod.Sayers@unisa.edu.au) Date: Mon, 5 Nov 2001 07:42:46 +1030 (CST) From: Jarrod Sayers X-X-Sender: To: Tim Kellers Cc: Subject: Re: root is now 0 In-Reply-To: <20011104154437.I24330-100000@serv1.wallnet.com> Message-ID: <20011105074022.B56974-100000@sanctuary.magill.unisa.edu.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 4 Nov 2001, Tim Kellers wrote: > Date: Sun, 04 Nov 2001 15:49:19 -0500 (EST) > From: Tim Kellers > To: freebsd-stable@FreeBSD.ORG > Subject: root is now 0 > > > After hacking around with NIS on one of our (thank god) development > servers, I've managed to somehow expunge root's name from something > important. When I, su'd to root, create a file, it now has the ownership > of 0 and group wheel. I've looked in /etc/passwd and /etc/master.passwd > and the entries look fine, and I've tuned NIS back off, rebooted and taken > all of the alterations I made to the passwd and group files back out, but > I still have a root with an "name" of 0. You may need to rebuild the /etc/pwd.db and /etc/spwd.db files which are actually used for username lookups. cd /etc && pwd_mkdb -p /etc/master.passwd Make sure that the entry for root is in your /etc/master.password file before running it, and then it should come back. Hope it helps. Jarrod Sayers Client Services Information Technology Services Unit University of South Australia, Magill Campus. Phone: +61 8 8302 4809 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message