From owner-freebsd-questions Sun Dec 8 19:11:13 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id TAA16041 for questions-outgoing; Sun, 8 Dec 1996 19:11:13 -0800 (PST) Received: from okeefe.bestweb.net (okeefe.bestweb.net [208.197.0.5]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id TAA16036 for ; Sun, 8 Dec 1996 19:11:10 -0800 (PST) Received: from [208.197.0.24] (picasso.bestweb.net [208.197.0.24]) by okeefe.bestweb.net (8.8.4/8.7.3) with ESMTP id WAA11971; Sun, 8 Dec 1996 22:10:49 -0500 (EST) X-Sender: jordyn@pop.bestweb.net Message-Id: In-Reply-To: <01BBE54C.8CEC6B40@dans-zyga-pc> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 8 Dec 1996 22:10:24 -0500 To: Dan Wolfe , "'questions@freebsd.org'" From: "Jordyn A. Buchanan" Subject: Re: Removing a user Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 9:11 PM -0500 12/8/96, Dan Wolfe wrote: >I am using FreeBSD 2.0.5 and have no problem adding users with >/usr/sbin/adduser utility. However, when I try to remove a user, one of the >steps I perform is to remove the line associated with the user in /etc/passwd >and save the file. Then, a few minutes later if I look at the file again, >the >line is back in the file. Is there any way to delete a line forever in >/etc/passwd? Any help is appreciated. Edit /etc/master.passwd instead. /etc/passwd is generated from /etc/master.passwd when you run pwd_mkdb and isn't really all that important to most programs, which get their information from /etc/master.passwd. Don't edit /etc/master.passwd by hand, though--use the vipw command instead. This way you'll get file locking and pwd_mkdb will be run do make sure your database files are updated in addition to the ASCII file you work on. Jordyn |----------------------------------------------------------------| |Jordyn A. Buchanan mailto:jordyn@bestweb.net | |Bestweb Corporation http://www.bestweb.net | |Senior System Administrator +1.914.271.4500 | |----------------------------------------------------------------|