From owner-freebsd-questions Thu Dec 5 14:42:31 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA10499 for questions-outgoing; Thu, 5 Dec 1996 14:42:31 -0800 (PST) Received: from cs.iastate.edu (cs.iastate.edu [129.186.3.1]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id OAA10494 for ; Thu, 5 Dec 1996 14:42:29 -0800 (PST) Received: from stimpy.cs.iastate.edu (stimpy.cs.iastate.edu [129.186.3.20]) by cs.iastate.edu (8.7.4/8.7.1) with ESMTP id QAA12710; Thu, 5 Dec 1996 16:42:15 -0600 (CST) Received: from localhost (ghelmer@localhost) by stimpy.cs.iastate.edu (8.7.4/8.7.1) with SMTP id QAA16337; Thu, 5 Dec 1996 16:42:15 -0600 (CST) X-Authentication-Warning: stimpy.cs.iastate.edu: ghelmer owned process doing -bs Date: Thu, 5 Dec 1996 16:42:14 -0600 (CST) From: Guy Helmer To: Lars Fredriksson cc: questions@freebsd.org Subject: Re: Deleting users In-Reply-To: <199612051803.TAA02863@mail.umu.se> 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, 5 Dec 1996, Lars Fredriksson wrote: > How can I delete users that i have created ? I've uploaded my removeuser script (a Perl script) to ftp.cdrom.com's /pub/FreeBSD/incoming directory as removeuser2.tar.gz: ftp://ftp.cdrom.com/pub/FreeBSD/incoming/removeuser2.tar.gz Given a user ID, it will remove: the user's crontab any at jobs belonging to the user the user from any groups in /etc/group the user from the local password file (it has no idea what NIS is) the user's home directory the user's incoming mail file It comes with a short README file detailing the simple installation procedure and a man page. Future enhancements should include killing all the processes that belong to the user, among a couple of other suggestions I've received. Guy Helmer, Computer Science Grad Student, Iowa State - ghelmer@cs.iastate.edu http://www.cs.iastate.edu/~ghelmer