From owner-freebsd-questions@freebsd.org Tue Aug 4 18:42:36 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB8419951A6 for ; Tue, 4 Aug 2015 18:42:36 +0000 (UTC) (envelope-from patrickhess@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6BEF810E0 for ; Tue, 4 Aug 2015 18:42:35 +0000 (UTC) (envelope-from patrickhess@gmx.net) Received: from desk8.phess.net ([95.88.11.237]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MTjMy-1ZE01K2cSG-00QRlZ; Tue, 04 Aug 2015 20:42:26 +0200 From: Patrick Hess To: Matthias Apitz , freebsd-questions@freebsd.org Subject: Re: pkg installation && adduser Date: Tue, 04 Aug 2015 20:42:25 +0200 Message-ID: <2625928.x9bsQ44ZxQ@desk8.phess.net> User-Agent: KMail/4.14.3 (FreeBSD/10.1-RELEASE-p16; KDE/4.14.3; i386; ; ) In-Reply-To: <20150804071742.GA35753@c720-r276659> References: <20150804071742.GA35753@c720-r276659> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:kcJgMJEStaThF+L14RGNAkJWVUSRy/5UmV/JaOgKO2wWuhmyWGJ tREII6llywY26kjokEd16Fs9UCMEQw0CmlbrT+uv84u0W+uQw9Aq5X79RU8Wlw6i8Vs3gj7 6WYN7y7lNCxZs+W0E4WCP7sQ8ZaGjOLnY/eBDOkWcY+/FVH25ekcuASKfBxhOPKxfCwjLGL gPu6U1IY4W+kBCQTdJzCA== X-UI-Out-Filterresults: notjunk:1;V01:K0:PqA7mLat7CU=:GiD1wdTn3dzm1fHQEH2x9g Xzje6HIrmXSXtz9D2gVyKfHVEPJnyHmj2QUukceBulKqjFkfPbVk9yvfKAIF6PA9vQ7ejiUvV wAl3ryGgN4uxnPP/3ottDgnDgmi9Q/JwVt6cL6s+x2wVY9KxZORPwzvSBzNFpXr/EVtyf+nDf TepO1kwfmd5cPaZ1PFWQCJMX5rACyp5bhOG06k/jAMavrLYXbGF+HlIXxuEJhlOIrsxo3yz0d nRJ/GtR3mNeTELZ5GC1p0cAueFDxtC/BUJlljMb/YWUSGty/tcp35+JDUZgb/9eO51+nN98nA DKlixK5A4Xf229ux6L/1NTiUZ+daigNSAimJNIH1lWDtvEEgFoXzG69iU8g9hrg9OyR8t3X7K /MQmJlaZ4XdO99iQIPbxkw/lBguNMDEbOKgDYqrnKXAYudNAcQgXF+nTocnkbkULiELlWVGrp zcN1hWtivMOUgenBKkaj143NvWDky+09gHU5ozD7LYjZG3V6Gntd97i7FhDASuzgXVQd+LTbe o6En1Dk6K8ES+YjuSdLdvYM6IdrpphKYJv1zm4fv0UngDEMyLqJ6+4kZAp++S8PleGeNzgVMz Ppo2vn3KLcMFWq/qcQ09sEepncMww6qHlShCX8bBGdlDZcVm5/2iqnlddzks9Suflu7dgt5HR YPo3kZeoT9u8/6vhk24wLeiJgVKVhqA8JMalmq74e+qY/dC0yjGSJUAh5+R29Ye7dlZc= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2015 18:42:36 -0000 Matthias Apitz wrote: > I'm trying to understand how the package command creates users during > the installation of packages, for example the dbus-1.8.8.txz does not > contain any file or script for creating the groups and user > 'messagebus'. How this is done during 'pkg install dbus'. > > [...] > > # tar tzf work/pkg/dbus-1.8.8.txz | fgrep + > +COMPACT_MANIFEST > +MANIFEST Take a look at the contents of that +MANIFEST file (linebreaks added here for better readability): # tar xvf dbus-1.8.20.txz x +COMPACT_MANIFEST x +MANIFEST [...] # cat +MANIFEST [...] "scripts": {"pre-install": "echo \"===> Creating users and/or groups.\" if ! /usr/sbin/pw groupshow messagebus >/dev/null 2>&1; then echo \"Creating group 'messagebus' with gid '556'.\" /usr/sbin/pw groupadd messagebus -g 556 [...] Patrick