From owner-freebsd-questions Thu Jan 23 08:13:01 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA26502 for questions-outgoing; Thu, 23 Jan 1997 08:13:01 -0800 (PST) Received: from cyber3.servtech.com (root@imap.servtech.com [199.1.22.25]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA26489 for ; Thu, 23 Jan 1997 08:12:48 -0800 (PST) Received: from jh2.tor.servtech.com (jh2.tor.servtech.com [204.181.8.196]) by cyber3.servtech.com (8.8.4/8.8.4) with SMTP id LAA10430; Thu, 23 Jan 1997 11:08:40 -0500 (EST) Message-ID: <32E78D54.446B9B3D@servtech.com> Date: Thu, 23 Jan 1997 11:09:56 -0500 From: Jen and Luke X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 3.0-970114-SNAP i386) MIME-Version: 1.0 To: gjennejohn@frt.dec.com CC: Tri Sakti Soebagyono , questions@freebsd.org Subject: Re: Delete User References: <9701231130.AA10425@cssmuc.frt.dec.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk garyj@frt.dec.com wrote: > > sakti@idola.net.id writes: > > 1. What is a command to delete user ? > > I think there's a deluser script, but I can't remember for which version > it's standard. > > > 2. I delete user with manual step : > > a. remove user property from /etc/passwd > > b. remove user's homdir > > why never success ?, I mean the user name is removed from /etc/passwd but > -they still success to login ? > > > > you *must* use vipw to change /etc/passwd, otherwise the password > database file (which is what really gets used by login) is not > updated. Did you use vipw ? > I do it this way: 1. erase users line from /etc/master.passwd 2. erase their dir 3. run pwd_mkdb -p /etc/master.passwd Does anyone know if thats wrong? -- Jen, Luke, Rusty the pink chicken, Ruckus the meowing U2, Telly the 'tiel and 5 kittys http://www.servtech.com/public/isis/