Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!nntp-hub2.barrnet.net!news.PBI.net!samba.rahul.net!rahul.net!a2i!bug.rahul.net!rahul.net!a2i!nmia!gallup.cia-g.com!lithium From: Stephen Fisher <lithium@cia-g.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Removing Users from FreeBSD 2.0 Date: Fri, 24 May 1996 02:11:51 -0600 Organization: New Mexico Internet Access Lines: 29 Message-ID: <Pine.LNX.3.91.960524021033.4176B-100000@gallup.cia-g.com> References: <4nvobf$dvu@news.starnet.net> <4nvuc8$622@atlas.uniserve.com> <4o1uvb$55j@baygull.rtd.com> NNTP-Posting-Host: gallup.cia-g.com Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <4o1uvb$55j@baygull.rtd.com> That just suspends the users. What if you want to delete them all in all? You need to delete home directories, crontabs, mailbox, etc.. along with the password entires. Especially if you're a medium/large site that can't have those things laying around for dead users. On 23 May 1996, Don Yuniskis wrote: > In article <4nvuc8$622@atlas.uniserve.com>, Tim Baird <tim@gfmurray.com> wrote: > >In article <4nvobf$dvu@news.starnet.net>, ds3721@strydr.com (David Schnardthorst) says: > >> > >>What is the easiest way to remove users under FreeBSD 2.0. Can I just take > >>them out of the passwd file, or is there another way? > > > >Use vipw and pound "dd" on every user line that you want to zap. > > Hmmm.... I'd advocate replacing their shell with /nonexistent and *leaving* > everything else where it is. In other words, keep the record of their UID > (etc.) and don't reuse the ID number. > > Unless, of course, you have **lots** of users or are a "casual" site. > > - Steve - Systems Manager - Community Internet Access