Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!vbcnet-west!knews.uk0.vbc.net!idiscover.co.uk!cnt1.come.net.uk!news From: "Ricky Chan" <ricky@come.net.uk> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Help with removing users.. Date: Wed, 15 Jan 1997 09:49:55 +0100 Organization: ComeNet Technology Ltd Lines: 18 Message-ID: <ricky-1501970949550001@194.207.66.18> References: <97013.1048053CQBJOZ@cmuvm.csv.cmich.edu> <ghelmer.853252597@stimpy> NNTP-Posting-Host: 194.207.66.18 X-Newsreader: Microsoft Internet Mail and News for Macintosh - 1.1 (34) Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33898 In article <ghelmer.853252597@stimpy>, ghelmer@cs.iastate.edu (Guy Helmer) wrote: >[snip] >vipw must be used to edit the password file -- the actual password >information is stored in /etc/master.passwd, and /etc/passwd (and >/etc/spwd.db and /etc/pwd.db) must be built from the information >contained in /etc/master.passwd. > Actually, in my remove user file, you don't need to use vipw as you can edit the master password file in any manner you choose and then run the command: pwd_mkdb /etc/master.passwd, that will create all the correct databases (/etc/passwd, pwd.bd, etc). This makes scripts easier to write and handle. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ricky Chan: Email: ricky@come.net.uk Web: http://www.come.net.uk/~ricky