From owner-freebsd-hackers Wed Jul 12 06:42:24 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA04778 for hackers-outgoing; Wed, 12 Jul 1995 06:42:24 -0700 Received: from alpha.dsu.edu (ghelmer@alpha.dsu.edu [138.247.32.12]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id GAA04770 for ; Wed, 12 Jul 1995 06:42:23 -0700 Received: (from ghelmer@localhost) by alpha.dsu.edu (8.6.12/8.6.12) id IAA16978; Wed, 12 Jul 1995 08:42:21 -0500 Date: Wed, 12 Jul 1995 08:42:21 -0500 (CDT) From: Guy Helmer To: freebsd-hackers@freefall.cdrom.com Subject: removeuser script Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: hackers-owner@FreeBSD.org Precedence: bulk I've written a script in Perl that removes users from a system (removes their /etc/master.passwd entry, rebuilds the password files & databases, removes the user from any groups in /etc/group, removes the home directory if the home directory is owned by the removed user, and removes the user's incoming mail). It uses the same locking scheme as /usr/bin/{passwd,chfn,chsh,chpass}, so it shouldn't corrupt passwd files. Under basic testing, it seems to work OK on my 2.0.5 system. Anyone willing to test it? If so, please let me know. Guy Helmer, Dakota State University Computing Services - ghelmer@alpha.dsu.edu