From owner-freebsd-questions Fri Nov 22 14:12:57 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA21085 for questions-outgoing; Fri, 22 Nov 1996 14:12:57 -0800 (PST) Received: from plains.nodak.edu (tinguely@plains.NoDak.edu [134.129.111.64]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA21060 for ; Fri, 22 Nov 1996 14:12:35 -0800 (PST) Received: (from tinguely@localhost) by plains.nodak.edu (8.8.3/8.8.3) id QAA16439; Fri, 22 Nov 1996 16:12:08 -0600 (CST) Date: Fri, 22 Nov 1996 16:12:08 -0600 (CST) From: Mark Tinguely Message-Id: <199611222212.QAA16439@plains.nodak.edu> To: dave@fcs.net, questions@freebsd.org Subject: Re: Removing Users Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > How do I remove a user from the database? I can't seem to find any info > anywhere on removing or editing users files. 1. (optionally) backup their files 2. (oprionally) remove their files: for i in /home /var /tmp do find $i -user USER -exec rm {}\; done 3. remove the account: vipw (search for user's entry -- depends on which editor is defined in EDITOR, then remove that line. saving the file remakes the database) or remove user's entry from /etc/master.passwd using awk and then run pwd_mkdb to remake the database and /etc/passwd --mark.