From owner-freebsd-questions Thu Jan 23 03:12:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA14478 for questions-outgoing; Thu, 23 Jan 1997 03:12:07 -0800 (PST) Received: from narcissus.ml.org (brosenga.st.pitzer.edu [134.173.120.201]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id DAA14473 for ; Thu, 23 Jan 1997 03:12:04 -0800 (PST) Received: (from ben@localhost) by narcissus.ml.org (8.7.5/8.7.3) id DAA03733; Thu, 23 Jan 1997 03:11:55 -0800 (PST) Date: Thu, 23 Jan 1997 03:11:55 -0800 (PST) From: Snob Art Genre To: Tri Sakti Soebagyono cc: freebsd-questions@freebsd.org, sakti@idola.net.id Subject: Re: Delete User In-Reply-To: <32E7A0C2.3F88@idola.net.id> 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 Thu, 23 Jan 1997, Tri Sakti Soebagyono wrote: > 1. What is a command to delete user ? There is none, though there are several scripts bouncing around that do it. > 2. I delete user with manual step : > a. remove user property from /etc/passwd > b. remove user's homdir > why never success ?, I mean the user name is removed from /etc/passwd but they still success to login ? Because you should never edit /etc/passwd directly. Use vipw instead. You can set root's EDITOR environment variable to change the editor that vipw invokes. Also, don't forget to remove the user's mail spool file (/var/mail/username). > > -sakti- > Ben The views expressed above are not those of the Worker's Compensation Board of Queensland, Australia.