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.idt.net!enews.sgi.com!news.corp.sgi.com!news.sgi.com!cs.uoregon.edu!news.efn.org!garcia.efn.org!deke From: Deke Swallen <deke@efn.org> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: removing a user Date: Fri, 25 Apr 1997 12:05:04 -0700 Organization: Oregon Public Networking Lines: 35 Message-ID: <Pine.SUN.3.95.970425120430.12092C-100000@garcia.efn.org> References: <01bc49d8$83b56cc0$e60862ce@zero.super-highway.net> <5j1egh$7fk@lace.colorado.edu> NNTP-Posting-Host: garcia.efn.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: Frank Crary <fcrary@rintintin.Colorado.EDU> In-Reply-To: <5j1egh$7fk@lace.colorado.edu> Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39729 The best way still is just typeing the folowing at the prompt: pw userdel <userID> that does it much more efficiently.... :) -Deke Swallen On 16 Apr 1997, Frank Crary wrote: > In article <01bc49d8$83b56cc0$e60862ce@zero.super-highway.net>, > GoViL <govil@beavisandbutthead.com> wrote: > >ok... this sounds dumd even to me.... but how do I REMOVE a user from the > >system? I can add then just fine, but say it was only temporary, & I want > >them gone! Thanks! > > I'd try brute force and ignorance. Edit the /etc/passwd file and > delete the line containing the user's name. Then remove the > user's home directory by hand, with rm -r * and rmdir. That should > keep them from loging in and free up the disk space they were > using. That probably won't remove all references to the user > on your system, there is probably a better way to do it, and > it's possible that a sharp user could still find some way to > retain access (I'm not exactly sure how ppp works, for example, > and the process I describe might leave a security hole...) But > this is a quick and dirty way to remove a user. (Of course, you > have to be root to do this, so use su.) > > Frank Crary > CU Boulder > >