From owner-freebsd-questions@FreeBSD.ORG Thu Sep 30 13:44:36 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 E9A3016A4CE for ; Thu, 30 Sep 2004 13:44:36 +0000 (GMT) Received: from esemetz.metz.supelec.fr (esemetz.metz.supelec.fr [193.48.224.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E4C043D1D for ; Thu, 30 Sep 2004 13:44:35 +0000 (GMT) (envelope-from gregorynou@altern.org) Received: from smtp.metz.supelec.fr (smtp.metz.supelec.fr [193.48.224.205]) by esemetz.metz.supelec.fr (8.11.6/8.9.3) with ESMTP id i8UDiYO14265 for ; Thu, 30 Sep 2004 15:44:34 +0200 Received: from altern.org (nou.rez-metz.supelec.fr [193.48.225.2]) by smtp.metz.supelec.fr (8.11.6/8.11.6) with ESMTP id i8UDsZV01965 for ; Thu, 30 Sep 2004 15:54:35 +0200 Message-ID: <415C0DC0.1030807@altern.org> Date: Thu, 30 Sep 2004 15:44:32 +0200 From: =?ISO-8859-1?Q?Gr=E9gory_Nou?= User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: fr, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: a very annoying pb with accounts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 13:44:37 -0000 Hi everybody, 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. Then, a few minutes later, I tried to su ... Impossible : I get some weird error message telling me "su: who are you ?" Then I tried to log directly from the login shell on tty0 with my account... unknown user. I add a look at /etc/passwd : everything was correct. And when I tried to recreate my account : "user already exists" Then I reboot (the second very bad idea in the same day), and user "gdm" didn't exist anymore. 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 ? I had this idea, but I didn't want to make another stupid thing today :) Thanks a lot -- Gregory Nou