From owner-freebsd-questions@FreeBSD.ORG Mon Dec 15 15:24:01 2003 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 6C30616A4CE for ; Mon, 15 Dec 2003 15:24:01 -0800 (PST) Received: from m01.ca.astound.net (m01.ca.astound.net [64.85.239.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E1A743D31 for ; Mon, 15 Dec 2003 15:24:00 -0800 (PST) (envelope-from rchopra@cal.berkeley.edu) Received: from cal.berkeley.edu (astound-64-85-244-72.ca.astound.net [64.85.244.72]) by m01.ca.astound.net (8.12.10/8.12.10) with ESMTP id hBFNLvau014582 for ; Mon, 15 Dec 2003 15:21:57 -0800 Message-ID: <3FDE4273.2080404@cal.berkeley.edu> Date: Mon, 15 Dec 2003 15:23:32 -0800 From: Rishi Chopra User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Subject: ID says no such user, PW says already exists ?!?! 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: Mon, 15 Dec 2003 23:24:01 -0000 This is gonna sound crazy, but: I got my FreeBSD box up and running and decided to add a user account for myself (avoid the perils of working as root?) I added a named account 'rchopra' and everything was honky-dorey. The following series of events occured and have left me confused and unable to use or re-add the 'rchopra' account: 1) I manually added myself to the 'wheel' account, in order to allow 'su' to root. Rather than using 'pw', I was under the impression just editing the entry in '/etc/group' would work; my entry looked like this: wheel:*:0:root:rchopra Was my thinking here correct? If not, can someone please point out my mistake? 2) This action seemed to cause a problem; I attempted to login and su, and I was not able to login successfully (my password would not work). I attempted to run 'id rchopra' at the command prompt, which returns an error: # id rchopra 'id: rchopra: no such user' Strangely enough, the '/home/rchopra' directory still exists. 3) OK, no problem right? Just run 'adduser' and create the account again... Unfortunately, after entering all the information for the user account 'rchopra' the system says: pw: user 'rchopra' already exists adduser: ERROR: There was an error adding user (rchopra) This happens if I add 'rchopra' to the 'wheel' group or the 'users' group (my only user-defined group so far.) So what gives? While I am curious and would like to know what went wrong (any illucidation as to what may have caused the error is of course appreciated), I would (more importantly) like to get my system consistent to the point of being able to add an 'rchopra' user account. What steps can I take to remove the (false?) rchopra entry or, alternatively, re-active the (working?) rchopra account? Thanks, Rishi