From owner-freebsd-questions Tue Sep 8 20:27:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA09651 for freebsd-questions-outgoing; Tue, 8 Sep 1998 20:27:13 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from blues.jpj.net (blues.jpj.net [204.97.17.146]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA09646 for ; Tue, 8 Sep 1998 20:27:11 -0700 (PDT) (envelope-from benh@jpj.net) Received: from [10.0.21.100] (xlate-2-57.webster.edu [198.246.2.57]) by blues.jpj.net (backatcha) with ESMTP id XAA04139; Tue, 8 Sep 1998 23:26:49 -0400 (EDT) X-Sender: benh@blues.jpj.net Message-Id: In-Reply-To: <35F5EBA4.C760A86F@zip.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 8 Sep 1998 22:31:25 -0500 To: davidj@zip.com.au From: Ben Hockenhull Subject: Re: root account has been renamed? Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Hi, > >The root account on my machine (running 2.2.7) seems to have been >renamed to Uroot. I can login as Uroot using the root password and I am >uid 0. Both /etc/passwd and /etc/master.passwd have changed the first >line from root to Uroot. /etc/group has remained the same, so Uroot is >not a member of any groups apart from wheel. > >I have two questions about this: >1. What caused root to be renamed? (Could I have done something really >stupid to cause this?) Chances are that you used pico to edit passwd. The Pine/Pico 4.0 distribution has a known bug in it that leaves stray capital U's in edited files. Upgrading to 4.02 ought to take care of that. >2. How can I get it back to how it was? (I tried editing /etc/passwd and >/etc/master.passwd and deleting the "U" but it didn't work - I kept >backups of the files before I edited.) Use vipw. It takes care of the file locking, file format checking and pwd_mkdb needed to keep the password hash files in sync. Ben -- Ben Hockenhull benh@jpj.net "Revenge is a dish best served with pinto beans and muffins." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message