*BSD News Article 93804


Return to BSD News archive

#! rnews 1374 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!ais.net!uunet!in2.uu.net!165.113.1.76!nntp3.crl.com!not-for-mail
From: "Jordan K. Hubbard" <jkh@FreeBSD.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: removing a user
Date: Thu, 17 Apr 1997 09:07:26 -0700
Organization: Walnut Creek CDROM
Lines: 15
Message-ID: <33564ABE.41C67EA6@FreeBSD.org>
References: <01bc49d8$83b56cc0$e60862ce@zero.super-highway.net> <5j1egh$7fk@lace.colorado.edu>
NNTP-Posting-Host: time.cdrom.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 2.2-STABLE i386)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39262


Frank Crary wrote:
> I'd try brute force and ignorance. Edit the /etc/passwd file and

That's too much of both. :-)

You don't want to edit /etc/passwd ever - it's a shadow file and will
simply be overwritten the next time you edit the _real_ password file
(/etc/master.passwd).

You want to use the vipw command to edit your password file since it
does proper locking and rebuilds the databases afterwards (which simply
editing /etc/master.passwd won't do).
-- 
- Jordan Hubbard
  FreeBSD core team / Walnut Creek CDROM.