From owner-freebsd-questions@FreeBSD.ORG Thu Sep 30 14:28:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 685E316A4CE for ; Thu, 30 Sep 2004 14:28:25 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4FA743D53 for ; Thu, 30 Sep 2004 14:28:23 +0000 (GMT) (envelope-from subhro.kar@gmail.com) Received: by mproxy.gmail.com with SMTP id v30so595723rnb for ; Thu, 30 Sep 2004 07:28:20 -0700 (PDT) Received: by 10.38.1.72 with SMTP id 72mr463366rna; Thu, 30 Sep 2004 07:28:20 -0700 (PDT) Received: by 10.38.206.15 with HTTP; Thu, 30 Sep 2004 07:28:20 -0700 (PDT) Message-ID: Date: Thu, 30 Sep 2004 19:58:20 +0530 From: Subhro To: =?ISO-8859-1?Q?Gr=E9gory_Nou?= In-Reply-To: <415C0DC0.1030807@altern.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <415C0DC0.1030807@altern.org> cc: freebsd-questions@freebsd.org Subject: Re: a very annoying pb with accounts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Subhro List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 14:28:25 -0000 On Thu, 30 Sep 2004 15:44:32 +0200, Gr=E9gory Nou w= rote: > Hi everybody, Hello, >=20 > Here is my (weird) problem ... > I opened /etc/spwd.db with ee and exited (which was actually a very bad > idea, even if I did not modified anything). At this time, everything was > still ok. Indeed a bad idea as you really should not open databases in text editors like ee. > Then I reboot (the second very bad idea in the same day), and user "gdm" > didn't exist anymore. vipw Search for the string gdm. If it exists then the gdm account is there. > Exactly as if I forgot to make mergemaster after upgrading, but with > only one difference : I actually didn't made a upgrade. > So now the situation is : I can only access with root account. > Does someone know when I did a mistake ? and does someone knows how to > fix it ? Should I delete account in /etc/passwd and create them again ? You can try it out but do not open the password file in a normal vi session and start deleting the lines. Instead open it up in vipw or use rmuser. You can either try to rebuild the source tree and run mermaster. this would fix the /etc/master.passwd if it is corrupted. Alternatively you can manually add the user gdm using vipw assuming that the gdm account does not exist. > I had this idea, but I didn't want to make another stupid thing today :) > Thanks a lot You are most welcome Regards S. --=20 Subhro Sankha Kar School of Information Technology Block AQ-13/1 Sector V ZIP 700091 India