Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 1996 01:18:31 GMT
From:      James Raynard <fqueries@jraynard.demon.co.uk>
To:        freebsd@newtrend.com
Cc:        questions@freebsd.org
Subject:   Re: How to removing an active user from system permenently.
Message-ID:  <199606100118.BAA18728@jraynard.demon.co.uk>
In-Reply-To: <199606092253.PAA09860@mailserver.newtrend.com> (freebsd@newtrend.com)

next in thread | previous in thread | raw e-mail | index | archive | help
> Recently, I create a user login account by mistake and want to remove
> the account and unable to do so. By removing the user name from passwd
> file does not help either because everytime a new user is added, the
> removed user is put back into the passwd file. Can somebody tell me the
> proper way to delete a user?

The passwd file is actually generated from a database, which is why
editing the passwd file doesn't work (as you've seen, it just gets
re-generated from the dataase).

Use 'vipw' to edit the file - this will automatically update the
database afterwards.

You'll probably need to do other things like delete their home
directory as well.

-- 
James Raynard, Edinburgh, Scotland | http://www.freebsd.org/~jraynard/
james@jraynard.demon.co.uk         | jraynard@freebsd.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606100118.BAA18728>