From owner-freebsd-ports@FreeBSD.ORG Sun May 23 03:47:53 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1D7B10656E2 for ; Sun, 23 May 2010 03:47:53 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 541998FC0C for ; Sun, 23 May 2010 03:47:52 +0000 (UTC) Received: by gyh20 with SMTP id 20so1365167gyh.13 for ; Sat, 22 May 2010 20:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding; bh=Ae4D0sbY0Z+8hfzwTRwJ1WUgNvdvMXNg+ceVRp/e324=; b=FUzVCpNPMRKsaIQahfOT2q05Ni65paH9h9OWKtNZhxqv8+aUfRbz88QfzNkhkkU9Yd 025TuQ16wpQw/CD1yqbxWpfK/dWbeg9TZ7pRwUCb6kI8KDauTUUHAhfe+uL+h0ZsrCuG pasWQmaTRp2pY2NRa6RGNj7mqbBm9Yvz+N1GQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding; b=vq4+2Gjua8zMUsy/QbSKGut514ElvTCJjABJmSGEvxCs6pZcmrT5xCzWRxwZkmwmlV zn1E3+ZUs8hO7fjxhX8gTxpcOgSnihgfr6bhu0onBBQ6voxhXTwlXqUfuhO1Q0IBD22H YD4pzfzbOeAVpBEUc4y6jZhzwPOymvxAEOD9s= Received: by 10.101.3.25 with SMTP id f25mr4480132ani.62.1274586471415; Sat, 22 May 2010 20:47:51 -0700 (PDT) Received: from centel.dataix.local (adsl-99-19-40-41.dsl.klmzmi.sbcglobal.net [99.19.40.41]) by mx.google.com with ESMTPS id 23sm2015643ywh.0.2010.05.22.20.47.49 (version=SSLv3 cipher=RC4-MD5); Sat, 22 May 2010 20:47:50 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4BF8A565.7040309@dataix.net> Date: Sat, 22 May 2010 23:47:49 -0400 From: jhell User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100515 Thunderbird MIME-Version: 1.0 To: Ade Lovett References: <20100522005313.26dcfbdb@gumby.homeunix.com> <4BF787E2.9010907@dataix.net> <20100522120815.063975ae@gumby.homeunix.com> <4BF7C6EE.3010001@dataix.net> <20100522134212.3d5447a8@gumby.homeunix.com> <4BF7FB7D.1010501@dataix.net> <20100522235425.1ab2c504@gumby.homeunix.com> <86aarr8q0m.fsf@gmail.com> In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=89D8547E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Users and groups kept after a port deinstallation X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2010 03:47:53 -0000 On 05/22/2010 21:50, Ade Lovett wrote: > > On May 22, 2010, at 16:39 , Anonymous wrote: >> >> Such unused entries in passwd add clutter. It in turn makes managing >> users more complex. You have to remember which users are created by you >> and which ones are created by ports. > > Irrespective of the UID/GID stuff mentioned elsewhere, merely go through the ports tree and add (or append) "(created by ports)" to the GECOS field of any such created users. > I do like this idea, but with respects to such; storing when it was created and what created it like "www/apache22" might be a little more useful to narrow these down. But if a port can install a user there is no reason that it can not uninstall a user via pw(8) that is available from bsd.commands.mk after checking a recorded md5(1) sum that it could create upon installation for the output of pw usershow/groupshow UID/GID. -- jhell