From owner-freebsd-questions Wed Feb 26 09:24:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA19958 for questions-outgoing; Wed, 26 Feb 1997 09:24:05 -0800 (PST) Received: from cs.iastate.edu (cs.iastate.edu [129.186.3.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA19948 for ; Wed, 26 Feb 1997 09:24:01 -0800 (PST) Received: from storm.cs.iastate.edu (storm.cs.iastate.edu [129.186.3.7]) by cs.iastate.edu (8.7.4/8.7.1) with ESMTP id LAA20304; Wed, 26 Feb 1997 11:23:41 -0600 (CST) Received: from localhost (ghelmer@localhost) by storm.cs.iastate.edu (8.7.4/8.7.1) with SMTP id LAA03371; Wed, 26 Feb 1997 11:23:35 -0600 (CST) X-Authentication-Warning: storm.cs.iastate.edu: ghelmer owned process doing -bs Date: Wed, 26 Feb 1997 11:23:34 -0600 (CST) From: Guy Helmer To: "Jacob J. Pinsky" cc: freebsd-questions@FreeBSD.ORG Subject: Re: Deleting a user In-Reply-To: <33145600.45B0@radonc.som.sunysb.edu> 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 Wed, 26 Feb 1997, Jacob J. Pinsky wrote: > What is the FreeBSD command for deleting a user account? Exactly what > does it delete? Thanks much. There is no supplied command in FreeBSD 2.1.7 or prior versions that will remove a user's account. You can install ftp://ftp.cdrom.com/pub/FreeBSD/incoming/removeuser2.tar.gz FreeBSD 2.2 will include (2.2-BETA and 2.2-GAMMA versions already include it) the command rmuser(8), which is essentially the same as removeuser mentioned above; both follow these steps: 1. Removes the user's crontab(1) entry (if any) 2. Removes any at(1) jobs belonging to the user 3.* Sends a SIGKILL signal to all processes owned by the user 4. Removes the user from the system's local password file 5. Removes the user's home directory (if it is owned by the user), in- cluding handling of symbolic links in the path to the actual home directory 6. Removes the incoming mail and pop daemon* mail files belonging to the user from /var/mail 7.* Removes all files owned by the user from /tmp, /var/tmp, and /var/tmp/vi.recover. 8. Removes the username from all groups to which it belongs in /etc/group. (If a group becomes empty and the group name is the same as the username, the group is removed; this complements adduser(8)'s per-user unique groups). (Things marked with * are only in a newer version of rmuser which may or may not make it into 2.2-RELEASE) Guy Helmer Guy Helmer, Computer Science Grad Student, Iowa State - ghelmer@cs.iastate.edu http://www.cs.iastate.edu/~ghelmer