From owner-freebsd-questions Sat Jul 20 16:11:34 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA23364 for questions-outgoing; Sat, 20 Jul 1996 16:11:34 -0700 (PDT) Received: from alpha.dsu.edu (ghelmer@alpha.dsu.edu [138.247.32.12]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA23357 for ; Sat, 20 Jul 1996 16:11:32 -0700 (PDT) Received: from localhost (ghelmer@localhost) by alpha.dsu.edu (8.7.5/8.7.3) with SMTP id SAA31589; Sat, 20 Jul 1996 18:11:25 -0500 (CDT) Date: Sat, 20 Jul 1996 18:11:24 -0500 (CDT) From: Guy Helmer To: Carlton Brown cc: questions@freebsd.org Subject: Re: FreeBSD Newsgroups and how to delete users In-Reply-To: <199607202112.OAA06551@catalyst.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 10 Jul 1980, Carlton Brown wrote: > I need to know where to fing the FreeBSD support newsgroups, so that I > can find anxaers to simple questions, not covered in the Handbook, > without pestering you guys, and I am presently trying to find the > counterpart to the 'adduser' command, that deletes them. Editing the > /etc/password file doesn't seem to be working; all my changes, even when > made as 'root' don't seem to stick. I log out, log back in, and the old > users are alway back in there, again. Very frustrating... Always use vipw to edit the password file. The real password database is /etc/master.passwd, and each time it is edited, /etc/passwd, /etc/pwd.db, and /etc/spwd.db must be rebuilt - vipw rebuilds these for you automatically. That said, you can find my latest beta version of removeuser (which removes the user from the password database, removes the user's home directory, removes the user from all groups in /etc/group, and removes the user's crontab & at jobs) at ftp://ftp.dsu.edu/pub/FreeBSD/ghelmer/removeuser-2-beta.tar.gz Since this is a beta version, I'd advise you use it carefully on a fully-backed-up system and please report any problems you have with it. The older, well-tested (but slightly harder-to-install and with fewer features) version is ftp://ftp.dsu.edu/pub/FreeBSD/ghelmer/removeuser.tar.gz Guy Helmer, Dakota State University Computing Services - ghelmer@alpha.dsu.edu