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 ED41A1382C5 for ; Fri, 30 Mar 2018 19:47:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 854E1E081B; Fri, 30 Mar 2018 19:47:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 2D160E0805 for ; Fri, 30 Mar 2018 19:47:32 +0000 (UTC) Received: from symphony.aura-online.co.uk (154.189.187.81.in-addr.arpa [81.187.189.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: chewi) by smtp.gentoo.org (Postfix) with ESMTPSA id 7C265335D4C for ; Fri, 30 Mar 2018 19:47:30 +0000 (UTC) Date: Fri, 30 Mar 2018 20:47:20 +0100 From: James Le Cuirot To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re : Modification proposal for user/group creation when ROOT!="/" Message-ID: <20180330204720.6a0dc005@symphony.aura-online.co.uk> In-Reply-To: <20180330202349.57ea1fa2@symphony.aura-online.co.uk> References: <160839029.2375229.1522435938193.ref@mail.yahoo.com> <160839029.2375229.1522435938193@mail.yahoo.com> <20180330202349.57ea1fa2@symphony.aura-online.co.uk> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) 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 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/YqkB=lNdxZK_mEYSjk._9fC"; protocol="application/pgp-signature" X-Archives-Salt: 6663d792-6043-4714-a6a2-9d80d59e42b1 X-Archives-Hash: 1db945c67a416471dba7df6e5b363a7f --Sig_/YqkB=lNdxZK_mEYSjk._9fC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 30 Mar 2018 20:23:49 +0100 James Le Cuirot wrote: > I did just have a lightbulb moment though. I've been playing with > unshare recently and I wondered if we could leverage it here. >=20 > $ sudo unshare -m /bin/sh -c "mount --bind /mnt/somewhere/etc /etc && g= roupadd foo" > groupadd: Cannot determine your user name. Aha! I was trying to do this against an NFS share for a system with a different architecture. If I use a local mount with a compatible architecture, it actually does work. I'll explore this some more. --=20 James Le Cuirot (chewi) Gentoo Linux Developer --Sig_/YqkB=lNdxZK_mEYSjk._9fC Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQKTBAEBCgB9FiEEUo3mvYaRpDkf2i7UIcYyEpxtfeQFAlq+lEhfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDUy OERFNkJEODY5MUE0MzkxRkRBMkVENDIxQzYzMjEyOUM2RDdERTQACgkQIcYyEpxt feQrgg//WHCfVg01NKV5DWK7kRly6kRgbAG85TjbjDT1v9/w3dSpvt0GZ6QdLa1V uBNhBNpfTES4Q3PcdqjUUWIOvi3C/7EM8/ppL9JlK2Br6hQ1SMAMtYblqG5q2d+G +lNo0dtl1ib0W5fKSqIAmD7qtiYSgu0CxlAqrsHKvHrkQTJr7WlUsr2OEAc369aR YZR7jxn+W70QZeYTb8hhi2gq+NJ4RQyhVygPqMj+mF3nEtkHz/Mek4pQ+G1FwKBp ijghGFndVrX/AmKAcltydcazr9v1dm65yVy6lMqQYqrqFwwAIJs3p5seESG7rwik AHAtrRoi9B2cL7DE8rwM+NGPQdWW3Pp95rD+hiLwsnYPSUwy8bVKnYa2gk0/FX9P NScKXv/1/z4mvglQ5EQxSfCdQBN7bP5j1PbHgzUBu2VDkpBPHkhFmesP0x2iLx16 KQduAEB8X3LghZV+LgKh6uyFqUb6McDjplQdnMiqE83bWX4mbI2F9KC6ok7BQa1k N1/0nvonP+pueuYCNQ0EVnmYynFHEzTE8GfnPiHA5qUWM0ueem0HlgdOnkjNT2Mj 3adi8amPe4G0/Nty7BYXBznPZ2fzLL9Cuh6f5ZBRSPdzW4/qssX3OZIp6Vhr/l8s /kA8K8anFW7jExsOviOi8lPh4jvKyPJU1stkvp6Rze+HMTUkyYk= =sr5Q -----END PGP SIGNATURE----- --Sig_/YqkB=lNdxZK_mEYSjk._9fC--