From owner-freebsd-stable Wed Aug 1 6:32: 9 2001 Delivered-To: freebsd-stable@freebsd.org Received: from comp04.prc.uic.edu (comp04.prc.uic.edu [128.248.230.104]) by hub.freebsd.org (Postfix) with SMTP id 0863837B401 for ; Wed, 1 Aug 2001 06:32:07 -0700 (PDT) (envelope-from lucas@comp04.prc.uic.edu) Received: (qmail 61070 invoked by uid 1000); 1 Aug 2001 13:32:03 -0000 Date: Wed, 1 Aug 2001 08:32:03 -0500 From: Lucas Bergman To: Odhiambo Washington Cc: freebsd-questions@freebsd.org, freebsd-stable@freebsd.org Subject: Re: Help with "rmuser" Message-ID: <20010801083203.A61037@comp04.prc.uic.edu> Reply-To: lucas@slb.to References: <20010801125415.S16379@everest.wananchi.com> <20010801075314.A58468@comp04.prc.uic.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20010801075314.A58468@comp04.prc.uic.edu>; from lucas@slb.to on Wed, Aug 01, 2001 at 07:53:14AM -0500 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Odhiambo: > > After a cvsupping and doing complete update yesterday, I now have > > a very funny problem - I can't remove users! > > > > everest# rmuser test2 > > Matching password entry: > > test2:RUgtD0aLuma/E:5259:1004::0:0:Test Two:/home/test2:/nonexistent > > > > Is this the entry you wish to remove? y > > > > Remove user's home directory (/home/test2)? y > > > > Removing user's at jobs:Updating password file, > > /usr/sbin/rmuser: Error: Couldn't open file : > > No such file or directory > > > > Is there something wierd I might have done? Replied I: > I don't think so. It looks like some recent changes broke rmuser. > I'm looking into it. It looks like rmuser is indeed broken. I submitted a PR with the following patch, which works for me. As usual, there is no guarantee that this won't totally destroy your password database; use with *extreme* caution. http://www.slb.to/~lucas/patches/rmuser-200108011320.diff Apply the patch in /usr/src/usr.sbin/adduser. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message