From owner-freebsd-questions@FreeBSD.ORG Fri Apr 13 15:16:00 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8010816A405 for ; Fri, 13 Apr 2007 15:16:00 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 5077013C487 for ; Fri, 13 Apr 2007 15:16:00 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pgh.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 901D7EBC76; Fri, 13 Apr 2007 11:15:59 -0400 (EDT) Date: Fri, 13 Apr 2007 11:15:58 -0400 From: Bill Moran To: Laszlo Nagy Message-Id: <20070413111558.88692726.wmoran@potentialtech.com> In-Reply-To: <461F99DF.7020202@designaproduct.biz> References: <461F99DF.7020202@designaproduct.biz> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.11; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Cannot delete user??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2007 15:16:00 -0000 In response to Laszlo Nagy : > > Hi, > > I cannot remove the user with 'miller'. pw says it does not exists. > However, rmuser says that it does exist, but it cannot delete it (I get > a "no such file or directory" message). I also tried to re-add this > user, but it also fails. (I have deleted 'miller' from /etc/passwd, but > it is no use...) Please see below. How can I remove this user? Did you possibly delete it from /etc/passwd before you did everything else? It's not safe to edit /etc/password directly. If you issue vipw, does the user still show up? if so, delete him there and /etc/passwd should be regenerated correctly. > gandalf@something.com~#pw userdel miller > pw: user 'miller' does not exist: No such file or directory > gandalf@something.com~#rmuser miller > Matching password entry: > > miller:*:1038:1003::0:0:Thomas Miller:/home/miller:/bin/csh > > Is this the entry you wish to remove? y > Remove user's home directory (/home/miller)? y > Removing user (miller): home passwdpw: user 'miller' does not exist: No > such file or directory > . > gandalf@something.com~#adduser > Username: miller > Full name: Thomas Miller > Uid (Leave empty for default): > Login group [miller]: users > Login group is users. Invite miller into other groups? []: > Login class [default]: > Shell (sh csh tcsh scponly nologin) [sh]: csh > Home directory [/home/miller]: > Use password-based authentication? [yes]: > Use an empty password? (yes/no) [no]: > Use a random password? (yes/no) [no]: > Enter password: > Enter password again: > Lock out the account after creation? [no]: > Username : miller > Password : ***** > Full Name : Thomas Miller > Uid : 1041 > Class : > Groups : users > Home : /home/miller > Shell : /bin/csh > Locked : no > OK? (yes/no): yes > pw: login name `miller' already exists > adduser: ERROR: There was an error adding user (miller). > Add another user? (yes/no): > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Bill Moran http://www.potentialtech.com