From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#35341: Guix System installer does not set up passwords and profile directories Date: Mon, 22 Apr 2019 12:02:03 +0200 Message-ID: <87zhoi1hpg.fsf@gnu.org> References: <20190420125611.m6hb2ftt7ztds275@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIVmx-0000ct-Bj for bug-guix@gnu.org; Mon, 22 Apr 2019 06:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIVmw-0007yG-8a for bug-guix@gnu.org; Mon, 22 Apr 2019 06:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36225) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIVmw-0007y6-5r for bug-guix@gnu.org; Mon, 22 Apr 2019 06:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hIVmw-00063A-1Y for bug-guix@gnu.org; Mon, 22 Apr 2019 06:03:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <20190420125611.m6hb2ftt7ztds275@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Sat, 20 Apr 2019 14:56:11 +0200") 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" To: "pelzflorian (Florian Pelz)" Cc: 35341-done@debbugs.gnu.org Hello Florian, "pelzflorian (Florian Pelz)" skribis: > I installed Guix System from a USB flash drive from the current git > master. The manual describes I should set up a password with passwd. > I think the installer should automate this, so users do not need to > know the passwd command. I=E2=80=99ll open a separate bug for that. > After setting a password with `passwd florian` and logging in > as florian, I run `guix pull`. This yields the following error: > > pull: error: while creating directory `/var/guix/profiles/per-user/floria= n': Permission denied > hint: Please create the `/var/guix/profiles/per-user/florian' directory, = with you > as the owner. Oh, got it. On a fresh system (one can check with =E2=80=98guix system vm bare-bones.tm= pl=E2=80=99 for instance), /var/guix/profiles/per-user is 555 and root-owned, so not writable. Then, the first time a client such as =E2=80=98guix package=E2=80=99 connec= ts to the daemon, the daemon chmods /var/guix/profiles/per-user to 777 (world-writable), see local-store.cc:89. Next, =E2=80=98guix package=E2=80=99 calls =E2=80=98ensure-default-profile= =E2=80=99, which creates /var/guix/profiles/per-user/$USER. The problem with =E2=80=98guix pull=E2=80=99 is that it would call =E2=80=98ensure-default-profile=E2=80=99 before it has connected to the dae= mon. Fixed in a06a95baffc2005ad1a64c4c3f82fc328e0d0009. Thanks, Ludo=E2=80=99.