Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!vbcnet-west!garlic.com!uunet!in3.uu.net!204.71.1.48!newsfeed.internetmci.com!howland.erols.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!cs.iastate.edu!ghelmer From: ghelmer@cs.iastate.edu (Guy Helmer) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Getting rid of users. Date: 8 Dec 96 19:52:23 GMT Organization: Iowa State University, Ames, Iowa Lines: 30 Message-ID: <ghelmer.850074743@shazam.cs.iastate.edu> References: <588l8g$77f@kanga.accessone.com> NNTP-Posting-Host: shazam.cs.iastate.edu erick@accessone.com writes: >What is the best way to delete everything about a user in FreeBSD. I'm new >to the system but know other versions of UNIX. Are there any neat utilities to >take care of this chore from the command line or X-Windows? Or is it time to >script it all again? I've written a fairly comprehensive command-line Perl script to remove users that I've uploaded to ftp.cdrom.com as 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 (with symbolic link handling) the user's incoming mail file It comes with a short README file detailing the simple installation procedure and a man page. Guy Helmer ghelmer@cs.iastate.edu -- Guy Helmer, Computer Science Grad Student, Iowa State - ghelmer@cs.iastate.edu http://www.cs.iastate.edu/~ghelmer Looking for a stable, standard & free UNIX-like O/S? http://www.freebsd.org