From owner-freebsd-questions Mon Mar 31 15:35:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA18226 for questions-outgoing; Mon, 31 Mar 1997 15:35:22 -0800 (PST) Received: from keystone.westminster.edu (keystone.westminster.edu [204.171.15.203]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA18203 for ; Mon, 31 Mar 1997 15:35:15 -0800 (PST) Received: (from fullermd@localhost) by keystone.westminster.edu (8.8.4/8.6.12) id SAA07887; Mon, 31 Mar 1997 18:33:55 -0500 (EST) Date: Mon, 31 Mar 1997 18:33:55 -0500 (EST) From: The Devil Himself To: jadeite cc: Anton Zykov , freebsd-questions@freebsd.org Subject: Re: delete a user In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 31 Mar 1997, jadeite wrote: > how did you delete the user? > if you just deleted the line from /etc/passwd and didn't run pwd_mkdb then > the doesn't go away. > > On Mon, 31 Mar 1997, Anton Zykov wrote: > > > I'm confused. > > I tried to delete a user. 2 days later I wanted to create another user > > with the same name, but I've got an error message saying that the user > > with that name already exists. How I can delete the user permanently? > > > > Thanks ahead, > > Anton Deleteing the line from /etc/passwd won't do it. Use vipw, delete the line referencing the user. Exit using ZZ to save it, and it'll rebuild the database automatically, and make a new /etc/passwd file too (vipw edits /etc/master.passwd) Then, edit your /etc/groups file to remove all the references to the user. Finally, delete the user's home directory. I'm not sure whether the last 2 steps are necessary, but they shouldn't take too long anyway. Hope it helps!! *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* |FreeBSD is good. FreeBSD is our friend. UNIX is our god.| *Micro$oft is bad. Micro$oft causes problems.* |MicroBSD??? I DON'T THINK SO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!| |"I hate quotes in signature files" :-} MAtthew Fuller| *fullermd@keystone.westminster.edu FreeBSD junkie* |http://keystone.westminster.edu/~fullermd Westminster College| *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*