From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1952A139694 for ; Thu, 20 Jul 2017 16:15:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8176D1FC014; Thu, 20 Jul 2017 16:15:10 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 309911FC002 for ; Thu, 20 Jul 2017 16:15:10 +0000 (UTC) Received: from [IPv6:2001:4dd7:7b17:0:35ea:fb6:8ac9:7d24] (2001-4dd7-7b17-0-35ea-fb6-8ac9-7d24.ipv6dyn.netcologne.de [IPv6:2001:4dd7:7b17:0:35ea:fb6:8ac9:7d24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: whissi) by smtp.gentoo.org (Postfix) with ESMTPSA id 96348341781 for ; Thu, 20 Jul 2017 16:15:08 +0000 (UTC) Subject: Re: [gentoo-dev] Sanity check: enewuser in binpkg with portage-utils To: gentoo-dev@lists.gentoo.org References: <20170720142033.GK12397@stuge.se> From: Thomas Deutschmann Message-ID: Date: Thu, 20 Jul 2017 18:15:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Thunderbird/52.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <20170720142033.GK12397@stuge.se> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JlHMjGEeACGpRQ0AmwUUcceqGPqo3WhbB" X-Archives-Salt: 082f9d26-aabb-4937-8d75-61d4aae8d2bc X-Archives-Hash: 79414bf0219638723a67cdc0cb16b35d This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JlHMjGEeACGpRQ0AmwUUcceqGPqo3WhbB Content-Type: multipart/mixed; boundary="e9uUBlaRfwrL30ScjTG0K241I5cTqV6n5"; protected-headers="v1" From: Thomas Deutschmann To: gentoo-dev@lists.gentoo.org Message-ID: Subject: Re: [gentoo-dev] Sanity check: enewuser in binpkg with portage-utils References: <20170720142033.GK12397@stuge.se> In-Reply-To: <20170720142033.GK12397@stuge.se> --e9uUBlaRfwrL30ScjTG0K241I5cTqV6n5 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi, keep in mind that when installing a binpkg, src_* functions are skipped, see https://devmanual.gentoo.org/ebuild-writing/functions/ So when you are doing anything with the actual user, you have to do that in a pkg_* function. In case of "exeopts", if you do something like exeopts -m 6710 -g plgudev in any src_* function, the created image will use the GID/UIDs from the system used to create the binpkg. This is probably your problem... Make sure to adjust permissions in pkg_* functions! --=20 Regards, Thomas --e9uUBlaRfwrL30ScjTG0K241I5cTqV6n5-- --JlHMjGEeACGpRQ0AmwUUcceqGPqo3WhbB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0 iQJ8BAEBCgBmBQJZcNcIXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzM0M1ODQ4MkM0MDIyOTJEMkUzQzVDMDY5 NzA5RjkwQzNDOTZGRkM4AAoJEJcJ+Qw8lv/IRZoP/2jgUlazMfAjrrUoTOMKP4cm G4PMdb/SSrqNbdhmthf5u10Ml+MvKQgfx08xpKBhCGtH4rLwdfvpx7HmrHhDFdV/ x/xRIV0bF1BtqkEHCEqBNH3lNiVsJ8A5TLHUfwjZml5WTN2ffFjw5BYiLIanRe8a 97A4lWYa8xOE5tkptRDg4RNOwyLjBYVXwI/129IVzGqkKeM0teqVxSxjCWqTEkuz 0ur1iUFZLXljJLk+0bDI7vhryJH1I47zp7/o+RLLSoepxk3GVplpAw/bQQAqvg2E TUl/7990zrgwCc3dr9PCwhjynMpleHlKnxBrPJ434sgDVMEd1zGArxOCaPX1FgIn FPMyALHJ/ZI/RNkOX0rA2nxPFLP5yrg7VzavrwVDZoKYGx9QaVnrAkLPi9NZk0L2 D5AEOCjz7AzvmXyejpR3Zoip44Bxe29u3OJa1Wbv/d/bXjmdzRAyugNO8tLQkP+M c6txdPtrAxllMt6Dedmjq7ydwE+qrxb8fOECDwEtH8T6+83YvP1lNP2365TaN7wy T6t3IA1pg4TH0B87D5WT4zrurH4vHMO2D4pzf3oI4NZhKQxel0kt6IhfpKlVYEdc V0G3vHtPWPWc3jFZD63DWGZKGT0j8eE6iUqbVTqIN7qPden49BVzefq0nq4IAHcV 9XMRPyMsPBtIw4oodXSy =2oFk -----END PGP SIGNATURE----- --JlHMjGEeACGpRQ0AmwUUcceqGPqo3WhbB--