Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Oct 2011 18:06:41 +0200
From:      Damien Fleuriot <ml@my.gd>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Add user to croosworld DESTDIR
Message-ID:  <4E8B2F11.8050008@my.gd>
In-Reply-To: <20111004.150623.171.1@DEV>
References:  <20111004.150623.171.1@DEV>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E8B2F11.8050008>