From owner-freebsd-stable Wed Aug 1 8:16:38 2001 Delivered-To: freebsd-stable@freebsd.org Received: from everest.wananchi.com (unknown [212.49.74.4]) by hub.freebsd.org (Postfix) with ESMTP id 25C2037B401; Wed, 1 Aug 2001 08:16:17 -0700 (PDT) (envelope-from wash@wananchi.com) Received: from wash by everest.wananchi.com with local (Exim 3.31 #5) id 15Rxj1-000HDl-00; Wed, 01 Aug 2001 18:15:55 +0300 Date: Wed, 1 Aug 2001 18:15:55 +0300 From: Odhiambo Washington To: freebsd-questions@freebsd.org, freebsd-stable@freebsd.org Cc: lucas@slb.to Subject: Re: Help with "rmuser" Message-ID: <20010801181555.H48472@everest.wananchi.com> Mail-Followup-To: Odhiambo Washington , freebsd-questions@freebsd.org, freebsd-stable@freebsd.org, lucas@slb.to References: <20010801125415.S16379@everest.wananchi.com> <20010801075314.A58468@comp04.prc.uic.edu> <20010801083203.A61037@comp04.prc.uic.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kORqDWCi7qDJ0mEj" Content-Disposition: inline In-Reply-To: <20010801083203.A61037@comp04.prc.uic.edu> User-Agent: Mutt/1.3.19i X-Disclaimer: My opinions do not necessarily represent those of my employer. X-Operating-System: FreeBSD 4.3-STABLE i386 X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. X-Uptime: 6:14PM up 1 day, 2:40, 2 users, load averages: 0.26, 0.27, 0.24 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 --kORqDWCi7qDJ0mEj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Lucas Bergman [20010801 16:33]: writing on the subject 'Re= : Help with "rmuser"' Lucas> Thus spake Odhiambo: Lucas>=20 Lucas> > > After a cvsupping and doing complete update yesterday, I now have Lucas> > > a very funny problem - I can't remove users! Lucas> > >=20 Lucas> > > everest# rmuser test2 Lucas> > > Matching password entry: Lucas> > > test2:RUgtD0aLuma/E:5259:1004::0:0:Test Two:/home/test2:/nonexis= tent Lucas> > >=20 Lucas> > > Is this the entry you wish to remove? y Lucas> > >=20 Lucas> > > Remove user's home directory (/home/test2)? y Lucas> > >=20 Lucas> > > Removing user's at jobs:Updating password file, Lucas> > > /usr/sbin/rmuser: Error: Couldn't open file : Lucas> > > No such file or directory Lucas> > >=20 Lucas> > > Is there something wierd I might have done? Lucas>=20 Lucas> Replied I: Lucas>=20 Lucas> > I don't think so. It looks like some recent changes broke rmuser. Lucas> > I'm looking into it. Lucas>=20 Lucas> It looks like rmuser is indeed broken. I submitted a PR with the Lucas> following patch, which works for me. As usual, there is no guarantee Lucas> that this won't totally destroy your password database; use with Lucas> *extreme* caution. Lucas>=20 Lucas> http://www.slb.to/~lucas/patches/rmuser-200108011320.diff Lucas>=20 Lucas> Apply the patch in /usr/src/usr.sbin/adduser. Hi Lucas, Thank you for the patch. I've applied it and it's worked perfectly here. -Wash -- Odhiambo Washington Wananchi Online Ltd., wash@wananchi.com 1st Flr Loita Hse. Tel: 254 2 313985 Loita Street., Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE. There's one good kind of writer -- a dead one.=20 -James T. Farrell=20 --kORqDWCi7qDJ0mEj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7aB0rn7LIsuxjem8RAr6CAKCqhOAVKMQPw0zOakD0oEnWAKVdvQCePvcd +h/o7VUeCktxMNKHL2JY3Kk= =NPH0 -----END PGP SIGNATURE----- --kORqDWCi7qDJ0mEj-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message