From owner-freebsd-questions Tue Feb 25 18:57:48 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA08026 for questions-outgoing; Tue, 25 Feb 1997 18:57:48 -0800 (PST) Received: from nexgen.ampr.org (max20-112.HiWAAY.net [208.147.153.112]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA08015 for ; Tue, 25 Feb 1997 18:57:42 -0800 (PST) Received: from nexgen (localhost [127.0.0.1]) by nexgen.ampr.org (8.8.5/8.8.4) with ESMTP id UAA26082; Tue, 25 Feb 1997 20:56:41 -0600 (CST) Message-Id: <199702260256.UAA26082@nexgen.ampr.org> X-Mailer: exmh version 1.6.9 8/22/96 To: Snob Art Genre cc: Janusz Stal , freebsd-questions@FreeBSD.ORG From: dkelly@hiwaay.net Subject: Re: How to delete user ? In-reply-to: Message from Snob Art Genre of "Tue, 25 Feb 1997 18:27:35 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 25 Feb 1997 20:56:40 -0600 Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Snob Art Genre writes: > > On Tue, 25 Feb 1997 dkelly@hiwaay.net wrote: > > > Snob Art Genre writes: > > > > > > There are scripts around that can do it, but you should know anyway: > > > > > > 1) Use vipw to delete their entry in the passwd file. > > > 2) Use your editor of choice to remove their group from /etc/group. > > > 3) rm -r /usr/home/whatever > > > 4) rm /var/mail/whatever > > > > Don't forget to look for cron and at jobs. > > What's the best way to do that? If the user has a crontab, as root use "crontab -u user -r" to remove it. If there wasn't a crontab for the user then you'll be told. As root type "atq" to see all the queued at jobs. nexgen: {406} atq Date Owner Queue Job# 20:55:00 02/25/97 dkelly c 1 nexgen: {407} atrm 1 nexgen: {408} atq nexgen: {409} -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.