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!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news.sprintlink.net!news-peer.sprintlink.net!howland.erols.net!newsxfer.itd.umich.edu!newsrelay.iastate.edu!news.iastate.edu!ghelmer From: ghelmer@cs.iastate.edu (Guy Helmer) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: HELP! how do you remove a user from BSD ????? Date: 5 Mar 1997 14:19:07 GMT Organization: Iowa State University, Ames, Iowa, USA Lines: 39 Message-ID: <5fjvcr$egn$1@news.iastate.edu> References: <01bbede1$0735a000$664c1bcc@tony.gcr1.com> NNTP-Posting-Host: storm.cs.iastate.edu X-Newsreader: NN version 6.5.1 (NOV) Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36583 "Tony" <tony@gcr1.com> writes: >I've done it once before by deleting files, and it worked BUT there must be >a command or a switch on a command to remove users from the system ???? There is no supplied command in FreeBSD 2.1.7 or prior versions that will remove a user's account. You can install ftp://ftp.cdrom.com/pub/FreeBSD/incoming/removeuser2.tar.gz FreeBSD 2.2 will include (2.2-BETA and 2.2-GAMMA versions already include it) the command rmuser(8), which is essentially the same as removeuser mentioned above; both follow these steps: 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). (Things marked with * are only in a newer version of rmuser which may or may not make it into 2.2-RELEASE) Guy Helmer -- 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