From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 4 15:06:27 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEAE7106564A for ; Tue, 4 Oct 2011 15:06:27 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 915348FC0A for ; Tue, 4 Oct 2011 15:06:27 +0000 (UTC) Received: by gyf2 with SMTP id 2so731762gyf.13 for ; Tue, 04 Oct 2011 08:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:x-mailer; bh=mRgfx4VgOu8iKChmhMvm/DTHsL/EFEyKk5Uu4dVPhCM=; b=U37QsCWdzUYbJQYW6JblnnOBQTz1hVv3+6dlXlYLUp5LUKefIWG2z5hoBOu6zjjoOY XGc7T7mYPyM6qTfmKBdvTAmQwOIgNlNRsABw5Ag9ZNnNAI4UASnwHEfNw+KaSMAAwGmq H/kRG678nR3EfdRpIqLw/AU2nLzPS1DaUElcw= Received: by 10.223.6.77 with SMTP id 13mr1846846fay.135.1317740786561; Tue, 04 Oct 2011 08:06:26 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id a1sm25786883fab.4.2011.10.04.08.06.23 (version=SSLv3 cipher=OTHER); Tue, 04 Oct 2011 08:06:24 -0700 (PDT) Message-ID: <20111004.150623.171.1@DEV> From: rank1seeker@gmail.com To: hackers@freebsd.org Date: Tue, 04 Oct 2011 17:06:23 +0200 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable X-Mailer: POP Peeper (3.8.0.0) Cc: Subject: 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, 04 Oct 2011 15:06:27 -0000 When I wana add user into DESTDIR, I chroot into it.=0D=0AHowever, in this = case, DESTDIR has an arch of amd64, while running machine is = i386.=0D=0ASo that isn't an option as all execute attempts would = fail(Exec format error).=0D=0A=0D=0AI've tried with pw's '-V etcdir' flag = and it did created user in amd64 DESTDIR, BUT without home = dir!=0D=0A=0D=0AI've found = this:=0D=0Ahttp://docs.freebsd.org/cgi/getmsg.cgi?fetch=3D2108497+0+archive/2001/freebsd-questions/20011028.freebsd-questions=0D=0A=0D=0AI = did however, managed to writte wrapper function, which created home and = mail layout, as would original FreeBSD installation.=0D=0ABUT, all = $DESTDIR/home/$USER dirs, are owned by 0:0 and I can't find a way to = chown it to DESTDIR user.=0D=0A=0D=0AThat LAST step is all I = need.=0D=0AAnyone has any idea?=0D=0A=0D=0A=0D=0ADomagoj Smol=E8i=E6