From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NN34y-0003rt-CW for garchives@archives.gentoo.org; Tue, 22 Dec 2009 11:39:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4939EE0A5C; Tue, 22 Dec 2009 11:38:18 +0000 (UTC) Received: from foo.birdnet.se (foo.birdnet.se [213.88.146.6]) by pigeon.gentoo.org (Postfix) with SMTP id D5652E0A5C for ; Tue, 22 Dec 2009 11:38:17 +0000 (UTC) Received: (qmail 12999 invoked by uid 501); 22 Dec 2009 11:38:16 -0000 Message-ID: <20091222113816.12998.qmail@stuge.se> Date: Tue, 22 Dec 2009 12:38:16 +0100 From: Peter Stuge To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] emerge --root : users not created Mail-Followup-To: gentoo-embedded@lists.gentoo.org References: <166af1cf0912140817j66fb0ba3q96f1e8285790bc8@mail.gmail.com> <4B267265.7080406@wildgooses.com> <3dc1583f0912140947q106e673fkcb541cc8929c0321@mail.gmail.com> <20091214180657.29028.qmail@stuge.se> <4B274E81.7060005@chaintronics.com> <20091215103359.12281.qmail@stuge.se> <1260883909.9491.2.camel@gentoo-dev> <20091215173725.19644.qmail@stuge.se> <1261430712.26386.6.camel@gentoo-dev> <1261430963.4949.24.camel@hangover> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1261430963.4949.24.camel@hangover> X-Archives-Salt: b08cf627-5ac2-40bf-9b1b-830f93a5e5db X-Archives-Hash: 42c5cdf29b1bcf25c74aeac432ccdfe9 Ned Ludd wrote: > > > useradd is a C program and my idea is to make it use the chroot() > > > system call. > > > > Sounds like a simple enough idea. Patches welcome? Might be worth > > looking at how Gentoo Prefix does it first though. I talked to upstream on freenode/#shadow and they welcome a patch for adding --chroot chroot() needs to happen really early since useradd and friends read some configuration files to know e.g. which password encryption method to use. > FYI. This is GLEP-0027 and it's not handled anywhere properly yet > afaik. > > http://www.gentoo.org/proj/en/glep/glep-0027.html I like it, but how to deal with two packages that want the same username but different settings such as home directory or shell? //Peter