Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news-peer.sprintlink.net!news.sprintlink.net!Sprint!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!ghelmer From: ghelmer@cs.iastate.edu (Guy Helmer) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: FreeBSD delete user account Utility! Date: 25 Jun 1997 14:01:21 GMT Organization: Iowa State University, Ames, Iowa, USA Lines: 31 Message-ID: <5or8bh$cc3$1@news.iastate.edu> References: <33A62F49.36EABB1F@ctn.net> NNTP-Posting-Host: longshot.cs.iastate.edu X-Newsreader: NN version 6.5.1 (NOV) Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43489 ekolee <ekolee@ctn.net> writes: >HI all, I would like to have some help. >I would like to know: Are there any tools for remove an old account from >my FreeBSD server? >I can adduser easily, but I don't know how to erase them. If you are running 2.2 or later, check out rmuser(8). Otherwise, you can pick up rmuser at ftp://ftp.freebsd.org/pub/FreeBSD/incoming/rmuser-2.1.1.tar.gz rmuser automates the task of removing a user by executing these tasks: 1. Removes the user's crontab(1) entry (if any) 2. Removes any at(1) jobs belonging to the user 3. Sends a SIGKILL signal to all processes owned by the user 4. Removes the user from the system's local password file 5. Removes the user's home directory (if it is owned by the user), in- cluding handling of symbolic links in the path to the actual home directory 6. Removes the incoming mail and pop daemon mail files belonging to the user from /var/mail 7. Removes all files owned by the user from /tmp, /var/tmp, and /var/tmp/vi.recover. 8. Removes the username from all groups to which it belongs in /etc/group. (If a group becomes empty and the group name is the same as the username, the group is removed; this complements adduser(8)'s per-user unique groups). -- Guy Helmer, Computer Science Grad Student, Iowa State - ghelmer@cs.iastate.edu http://www.cs.iastate.edu/~ghelmer