From owner-freebsd-questions Fri Oct 18 09:02:17 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA03680 for questions-outgoing; Fri, 18 Oct 1996 09:02:17 -0700 (PDT) Received: from horton.iaces.com ([204.147.87.98]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA03670 for ; Fri, 18 Oct 1996 09:02:06 -0700 (PDT) Received: (from proot@localhost) by horton.iaces.com (8.7.5/8.7.3) id LAA00873; Fri, 18 Oct 1996 11:01:58 -0500 (CDT) From: "Paul T. Root" Message-Id: <199610181601.LAA00873@horton.iaces.com> Subject: Re: Problem with delete user To: kims@ezenet.com (Chun man Ng) Date: Fri, 18 Oct 1996 11:01:58 -0500 (CDT) Cc: questions@freebsd.org In-Reply-To: <1.5.4.32.19961018155945.00665b14@ezenet.com> from Chun man Ng at "Oct 18, 96 08:59:45 am" X-Organization: !nterprise Networking Services - ACES X-Phone: (612) 663-1979 X-Fax: (612) 663-8030 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 200 S. 5th St., Suite 1100 X-Address: Minneapolis, MN 55402 X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In a previous message, Chun man Ng said: > Hi, > How can I delete a user? To add a user, I use adduser but what I can > do to delete user. I try to delete the user entry in passwd file and > master.passwd file but I doesn't work. > > regard > Kims Please direct questions to questions@freebsd.org. I'm not tech support, just a happy semi-knowledgable user. Never just edit /etc/password and /etc/master.password. These are just files convient to humans. The real file is pwd.db and you can't really read it. What you want to do is use vipw to delete the user, this will do the right thing for you. -- Paul T. Root E/Mail: proot@iaces.com 200 S. 5th St. Suite 1100 PAG: +1 (800) SKY-PAGE PIN: 537-7370 Minneapolis, MN 55402 WRK: +1 (612) 663-1979 NIC: PTR FAX: +1 (612) 663-8030