Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 1997 20:56:40 -0600
From:      dkelly@hiwaay.net
To:        Snob Art Genre <ben@narcissus.ml.org>
Cc:        Janusz Stal <eistal@cyf-kr.edu.pl>, freebsd-questions@FreeBSD.ORG
Subject:   Re: How to delete user ? 
Message-ID:  <199702260256.UAA26082@nexgen.ampr.org>
In-Reply-To: Message from Snob Art Genre <ben@narcissus.ml.org>  of "Tue, 25 Feb 1997 18:27:35 PST." <Pine.NEB.3.95.970225182727.3250B-100000@narcissus.ml.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702260256.UAA26082>