Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!munnari.OZ.AU!news.hawaii.edu!ames!agate!howland.reston.ans.net!news1.digex.net!scratchy.mosquito.com!no.such.domain!boot From: boot@no.such.domain (Bruce Bauman) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: How to remove users? Date: 18 Nov 1995 13:53:16 GMT Organization: Sirius Cybernetics, Sirius City branch Lines: 15 Message-ID: <48kogc$igb@scratchy.mosquito.com> References: <48ja7t$85j@gol2.gol.com> NNTP-Posting-Host: itchy.mosquito.com X-Newsreader: TIN [version 1.2 PL2] MICHAEL (michael@gnj.or.jp) wrote: : Can somebody please tell me how to remove users from my FreeBSD system? : I have tried deleting them from /etc/passwd and /etc/master.passwd : files, deleting them from the group file, and deleting their home : directories, but when I do "finger" they still seem to be there. Also, : if I try to add a user with the same name as a deleted person the system : reports that the user already exists. The easiest way is to use vipw, and delete the line with the user. When you exit, it will rebuild /etc/pwd.db and /etc/spwd.db for you. For the users that you've already deleted, you can just run the pwd_mkdb command by hand. See man pwd_mkdb. -- Bruce