*BSD News Article 94028


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!news.wildstar.net!news.ececs.uc.edu!newsxfer.itd.umich.edu!newsxfer3.itd.umich.edu!howland.erols.net!blackbush.xlink.net!rz.uni-karlsruhe.de!not-for-mail
From: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Stupidly remove a user
Date: 21 Apr 1997 06:28:40 GMT
Organization: University of Karlsruhe, Germany
Lines: 24
Sender: Philipp Mergenthaler <un1i@rzstud1.rz.uni-karlsruhe.de>
Message-ID: <5jf1eo$adf$1@nz12.rz.uni-karlsruhe.de>
References: <01bc4d4d$659e3960$dcc42299@beta>
NNTP-Posting-Host: rzstud1.rz.uni-karlsruhe.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-User: un1i
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970409; 9000/819 HP-UX B.10.10]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39426

 Ming Chu <mingchu@cory.eecs.berkeley.edu> wrote:
> This is very stupid:

> I've tried to remove a user by deleting an entry in /etc/master.passwd and
> in /etc/passwd and then rm -r /home/<username>; however, not only that the
> user can still log on, but I cannot add any new user now. And the error
> message is: "Corrupted /etc/master.passwd..."

> Help!!! Do I have to reinstall FreeBSD again in order to recover this?
> -Ming

man vipw
man pwd_mkdb

Maybe pwd_mkdb solves your problem. In the worst case you'd probably
have to use pwd_mkdb -p and add all users again (would this damage their
present home directories? I don't know.)
Bye, Philipp

-- 
P. Mergenthaler, un1i@rz.uni-karlsruhe.de  |  Wer halb gebildet, ist der
Tel.: 0721/694532                          |     schoenste Narr.
Klosterweg 28 / I609, 76131 Karlsruhe      | (Weiss jemand, von wem das ist?)
http://www.uni-karlsruhe.de/~un1i/         |