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:13:35 +0200 Message-ID: <87imv61h68.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]:57356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIVxa-00024m-RL for bug-guix@gnu.org; Mon, 22 Apr 2019 06:14:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIVxZ-0004Mx-WC for bug-guix@gnu.org; Mon, 22 Apr 2019 06:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIVxZ-0004Mr-Sb for bug-guix@gnu.org; Mon, 22 Apr 2019 06:14:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hIVxZ-0006M4-LT for bug-guix@gnu.org; Mon, 22 Apr 2019 06:14:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:57302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIVxE-00024K-Hu for bug-guix@gnu.org; Mon, 22 Apr 2019 06:13:41 -0400 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: m.othacehe@gmail.com, 35341@debbugs.gnu.org Hi, "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 think it=E2=80=99d be nice if the installer would initialize the user password, and also root=E2=80=99s password (which is empty by default). The obvious approach would be to add a dialog box in the installer and then set the =E2=80=98password=E2=80=99 field of each , and a= lso add a for root itself with the =E2=80=98password=E2=80=99 field se= t. The problem with this approach is that password hashes would end world-readable in the store, so we would need to add warnings asking users to change passwords after logging in. Not great. Another option would be to have an activation snippet that runs when booting the newly installed system: if would check for a flag or something (it could check for uninitialized passwords), and if it determines it=E2=80=99s a first boot, open a dialog box asking for password= s. We=E2=80=99d need to add a =E2=80=9Cpost-install=E2=80=9D service in the OS= config that would do just that. That would be the most robust approach, but it=E2=80=99s also a bit more wo= rk I guess. It=E2=80=99s also not so nice that users will see this extra servic= e in their config. Thoughts? Ludo=E2=80=99.