From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Subject: Re: starting using guix Date: Sat, 19 Jan 2013 21:53:08 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwnqB-0005yn-EF for bug-guix@gnu.org; Sun, 20 Jan 2013 00:53:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwnqA-000381-H5 for bug-guix@gnu.org; Sun, 20 Jan 2013 00:53:11 -0500 Received: from mail-lb0-f177.google.com ([209.85.217.177]:43763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwnqA-00037s-3f for bug-guix@gnu.org; Sun, 20 Jan 2013 00:53:10 -0500 Received: by mail-lb0-f177.google.com with SMTP id gm6so1476674lbb.22 for ; Sat, 19 Jan 2013 21:53:09 -0800 (PST) In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org On Sat, Jan 19, 2013 at 3:11 PM, Aleix Conchillo Flaqu=C3=A9 wrote: > # groupadd guix-builder > # for i in `seq 1 10`; > do > useradd -g guix-builder -d /var/empty -s `which nologin` \ > -c "Guix build user $i" guix-builder$i; > done > > I get this error when trying to build a package "guix-package -i guile": > > error: build failed: the build users group `guix-builder' has no members > I think this is because nix uses "getgrnam" (nix/libstore/build.cc:472) which returns information only from /etc/group not from /etc/passwd where the main group is stored. By default, if you specify -g in useradd that would be the primary group and is only stored in /etc/passwd. So, the solution is: useradd -g guix-builder -G guix-builder .... This will set the primary group in /etc/passwd and will also add the user in guix-builder group in /etc/group. You might not specify -g guix-builder which is OK, but it will generate an additional group for each user. Aleix