From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IUCz4-00049t-Hx for garchives@archives.gentoo.org; Sun, 09 Sep 2007 02:57:14 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l892nYYx004002; Sun, 9 Sep 2007 02:49:34 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l892lcKR001727 for ; Sun, 9 Sep 2007 02:47:39 GMT Received: by ug-out-1314.google.com with SMTP id j3so267259ugf for ; Sat, 08 Sep 2007 19:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=dKY9TCXTjbkJKFD5AWJvENtPQHZZ/wvcSMhyH/7VtMs=; b=D6jMT1apc3KOoreUJzTIm8NDm/7QuZE07Br1H6jlbOHFVgmNq8GFr4nUMYHTbfoCMu5VKrTq4XkHojETAIEOgv+nuNHXTSOb8Hw2J73pqzb10gKHQipTLn1APotTblBEmrNm/RbBpFe5jBtzpA+xCjMtjSXZGIjJ2/uCFvwlZO4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=WIe1rm/96M/akRbHMyIlsFPbqeFNu/2qC53k+L+kEZrCoBt7aDw+HUTivP03ZwCpvUEG5J0OAvtfsNuFZkPMHSpguwMOQqqE4sYpyWV3YIiQOkVO1PUx6AG46yU8QYkyLoSvyTWyTA1SbbjiUf6ZbBtRYuNVjhRMjDTlA1X7xeE= Received: by 10.66.220.17 with SMTP id s17mr3090879ugg.1189306058589; Sat, 08 Sep 2007 19:47:38 -0700 (PDT) Received: from ?192.168.0.2? ( [88.65.168.159]) by mx.google.com with ESMTPS id o30sm6768439ugd.2007.09.08.19.47.35 (version=SSLv3 cipher=RC4-MD5); Sat, 08 Sep 2007 19:47:36 -0700 (PDT) Message-ID: <46E35EBB.8070508@googlemail.com> Date: Sun, 09 Sep 2007 04:47:23 +0200 From: Daniel Pielmeier User-Agent: Thunderbird 2.0.0.6 (X11/20070805) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Managing users and groups Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: e97af65e-fe8b-4e9d-8ca8-2afb296e110a X-Archives-Hash: 772a3bb1a63984c7fc0072c084edd273 Hi, I have recently checked the contents of /etc/{group,passwd,shadow} and found that there are users and groups which are not needed anymore because the packages which need them have also been removed. I have deleted some of them which are unnecessary with userdel and groupdel. I have experienced that some ebuilds use enewuser and enewgroup to create users and groups which are needed. Some print a elog notice in pkg_postinst to inform the user to create them manually. I think it would be a good idea to either leave it to the user (inform them via pkg_postinst) to create the groups and users or better create the needed groups and users in pkg_preinst and remove them at uninstall in pkg_postrm (edeluser end edelgroup may have to be implemented to achieve this). In this case the configuration files did not get cluttered with unneeded entries. To be sure that no group or user is removed which is still needed some kind of configuration file could be used to prevent the deletion of shared groups/users. With contents like group/user X needed by ebuild Y. While writing this i have found GLEP-27. What is the current status concerning this? Regards, Daniel -- gentoo-dev@gentoo.org mailing list