From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 11 19:08:01 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 582BD1065673 for ; Tue, 11 Oct 2011 19:08:01 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1AFC88FC14 for ; Tue, 11 Oct 2011 19:08:00 +0000 (UTC) Received: by ggeq3 with SMTP id q3so7554720gge.13 for ; Tue, 11 Oct 2011 12:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:in-reply-to:references:x-mailer; bh=N66sVWRPbK38blELP+c/HOrAKBqkrhwjMRNQPhh7gYE=; b=AYhAzKFkefndx4HfSwvT9FfqVZoQ50NARFa/A7+8OXPOmDiHZWzorkdlVPHCwgx/ey Tqg0Psj1Z2E4jEp4rvpEPRPrfqvdmT8Z0Fb4GMBIVYxhLfHAl+JE715UzbK1EuNW9ynQ nandqGjnTr9b66z1A4dG0j1rL6QS4IhM54SEc= Received: by 10.223.4.132 with SMTP id 4mr40963598far.12.1318358615787; Tue, 11 Oct 2011 11:43:35 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id c1sm38886305fab.15.2011.10.11.11.43.32 (version=SSLv3 cipher=OTHER); Tue, 11 Oct 2011 11:43:34 -0700 (PDT) Message-ID: <20111011.184333.187.2@DEV> From: rank1seeker@gmail.com To: freebsd-hackers@freebsd.org Date: Tue, 11 Oct 2011 20:43:33 +0200 In-Reply-To: <4E8B2F11.8050008@my.gd> References: <20111004.150623.171.1@DEV> <4E8B2F11.8050008@my.gd> X-Mailer: POP Peeper (3.8.0.0) Subject: Re: Add user to croosworld DESTDIR X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2011 19:08:01 -0000 ----- Original Message ----- From: Damien Fleuriot To: freebsd-hackers@freebsd.org Date: Tue, 04 Oct 2011 18:06:41 +0200 Subject: Re: Add user to croosworld DESTDIR > On 10/4/11 5:06 PM, rank1seeker@gmail.com wrote: > > When I wana add user into DESTDIR, I chroot into it. > > However, in this case, DESTDIR has an arch of amd64, while running machine is i386. > > So that isn't an option as all execute attempts would fail(Exec format error). > > > > I've tried with pw's '-V etcdir' flag and it did created user in amd64 DESTDIR, BUT without home dir! > > > > I've found this: > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=2108497+0+archive/2001/freebsd-questions/20011028.freebsd-questions > > > > I did however, managed to writte wrapper function, which created home and mail layout, as would original FreeBSD installation. > > BUT, all $DESTDIR/home/$USER dirs, are owned by 0:0 and I can't find a way to chown it to DESTDIR user. > > > > That LAST step is all I need. > > Anyone has any idea? > > > > Grep the newly added user's UID/GID from $DESTDIR/etc/passwd , chown to > these, should work even if they don't exist on your original system. Thanks. It worked. ;)