From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2MP4LhDIJGPmSAEAbAwnHQ (envelope-from ) for ; Fri, 16 Sep 2022 21:01:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4IYBLhDIJGOnOAAAG6o9tA (envelope-from ) for ; Fri, 16 Sep 2022 21:01:36 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5AE1D2C12C for ; Fri, 16 Sep 2022 21:01:36 +0200 (CEST) Received: from localhost ([::1]:54572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZGal-0001f6-EH for larch@yhetil.org; Fri, 16 Sep 2022 15:01:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZGaG-0001El-Vk for bug-guix@gnu.org; Fri, 16 Sep 2022 15:01:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZGaE-0006p5-JS for bug-guix@gnu.org; Fri, 16 Sep 2022 15:01:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZGaE-0003qk-4g for bug-guix@gnu.org; Fri, 16 Sep 2022 15:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44944: Unable to log into X session via gdm Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 16 Sep 2022 19:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44944 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Danny Milosavljevic Cc: 44944@debbugs.gnu.org Received: via spool by 44944-submit@debbugs.gnu.org id=B44944.166335483310890 (code B ref 44944); Fri, 16 Sep 2022 19:01:02 +0000 Received: (at 44944) by debbugs.gnu.org; 16 Sep 2022 19:00:33 +0000 Received: from localhost ([127.0.0.1]:44366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZGZj-0002oF-Rs for submit@debbugs.gnu.org; Fri, 16 Sep 2022 15:00:32 -0400 Received: from mail-qt1-f181.google.com ([209.85.160.181]:33457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZGZi-0002Ql-5y for 44944@debbugs.gnu.org; Fri, 16 Sep 2022 15:00:31 -0400 Received: by mail-qt1-f181.google.com with SMTP id ay9so5954422qtb.0 for <44944@debbugs.gnu.org>; Fri, 16 Sep 2022 12:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date; bh=1fBGUB33SO3r8zsr6Zp38LiBaRQyd+gdD8vhhfM0YCQ=; b=qWdm9K4ebjp/N6kbrHBSgWpLXJERp8aU5lDd+d4YR7LqDvqIPHmyYkX51ux3dt66Yp vqdxf3607wGETUPUFCMoKkguj8A/4hjoY62V8SYQKczU4O5YNBaopfeFBSZQ4UfUNbif kYNTSNfCNL9lBwvRoF8CZceivuU2PALEJkHo3r+Q9LfGDJUPIrCUeZJ/wHG0YtCt2lJM 2he0KU8V0LUir3Eq2vOylXktPzIAp9GcOx+67zpnJ3hCuKH3ruZT/+x68Az0Ae8v23U0 aQKVMDIkJlVHrxgay557z/06OC3YPNmm/CbeZc6yUBZMUjhTna4C2+JlnmAUizJzWpby kx2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=1fBGUB33SO3r8zsr6Zp38LiBaRQyd+gdD8vhhfM0YCQ=; b=sL66r5YoSfhL/iWP5d5pLKId61+JetZlIHiPzeN3c0oYhOVQHMa4yHrdQ+VAU0UQIE ywavayfLO9EBodB42vYXJeIAy8XAGQTlXo/jSvoEJzo66RVxeAoWveCmaxWf+3ZAQ/bc Vmyyg0hW++mpVpsHMT5yezA2uCSy04ZRh7fSWNsMvoiRA07o6BfBJZD43KuAGyUqn/QH eOo0BJ1tCf9yM9FaePhvgRl61pzDibzrX8KHIR/zLiIp4mAN20v6cgEoz7FGyrA/01T9 9vFzxzPulq9f9jbJQLb8k/J0s93IRA+yMH+NP3QYUW6Nyzgrd0jZAL0/rX3aTlXDwUKY LXVQ== X-Gm-Message-State: ACrzQf23DMlpEDzojVftodMa/yGLeuqtTxSBchfEA82olWS4T8iMFQ+7 UWHyPbDN6MYdRnrmp2LE5gQpzLG81/I= X-Google-Smtp-Source: AMsMyM5Kfa2VREzot9dDLSCZiadpeS14/ps+4ZkwFZPZyVZRjPiT4mj/cHzyfxKqb/TgqjMEc04Plw== X-Received: by 2002:a05:622a:14a:b0:35c:c06a:25d1 with SMTP id v10-20020a05622a014a00b0035cc06a25d1mr5560966qtw.254.1663354824082; Fri, 16 Sep 2022 12:00:24 -0700 (PDT) Received: from hurd (dsl-155-48.b2b2c.ca. [66.158.155.48]) by smtp.gmail.com with ESMTPSA id i18-20020a05620a405200b006bb9125363fsm6181799qko.121.2022.09.16.12.00.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 12:00:23 -0700 (PDT) From: Maxim Cournoyer References: <20201129140240.546b1403@scratchpost.org> Date: Fri, 16 Sep 2022 15:00:22 -0400 In-Reply-To: <20201129140240.546b1403@scratchpost.org> (Danny Milosavljevic's message of "Sun, 29 Nov 2020 14:02:40 +0100") Message-ID: <8735crdu0p.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663354896; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=1fBGUB33SO3r8zsr6Zp38LiBaRQyd+gdD8vhhfM0YCQ=; b=OWaGbfyQeFMtBTLI3akl8weX96Gq0Nwegc0yL17DgTXUey6Q7z4FDJENSYumFFSMcxp22V Kbz2bOarxb+CpwIx6s/ZeA0qulzfw1I9CJEEVOTT9pHMFiZMHRmvoqkEfsU4WcRt3Jx3ym zyLSfXfpye5Nb02eIRyTAEkEqpufVP3zHj+LN92aPOohJLQPDk1Xk5eJETY2KWJ5zczKFU 9qpnhXkAxBCJSvb1QLQ2rUZHeyGSKu8bq01n+NpL8FRCfn6N0KFrtO+fJQZc7v3r2Sob1j Qi9+cgQ0klI7rn0n5v3x0snMJLKJijqhUjPZH0yNaIHqKKJpDiSj1m2LWeGrig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663354896; a=rsa-sha256; cv=none; b=j9tj6lxTW5BVqZbnZnzTC+jhshQJUj46hzGZLBktcnUJGkmQLahSthzOIAh4vRVhIypy/3 hV3oOd8154qv9gX+Nfjc9JHsiQ8efCZgZa3aCnXOL/qO64h9cp7eWQL7e489lfulGFe6m8 jGUfRwgGDLguV8QYXIgi/S87ADSVrerwbLhq4eQiHEEtuoLoYgSjlV+y15Mq0L4Ova+cGJ J21DWUuyR0gKRRLSObeQ1rlmwClvpEiaCNXsncvBz4vLg9hEb35VWLGEMV8ix52pBXV08a YRryTh4CFSYMKDc2GdkywkEpPOe1j8g3UI9TCuSSSeWhMIB1uO7yhlfh79GONg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=qWdm9K4e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=qWdm9K4e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5AE1D2C12C X-Spam-Score: 6.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5lL0WxHk5rzU Hi, Danny Milosavljevic writes: > The latest guix system reconfigure (of yesterday) left me unable to login into > my X session. guix system rollback DID NOT fix it. > > I would enter my password and it would "try" to login and return right back to > the gdm login screen. > > I've since removed gdm from my OS configuration (because I have to do actual > *work* on this computer), but I think it would have been enough to just > chown /var/lib/gdm and rm ~/.xsession-errors (!) in order to make it work > again. > > Does that mean that user ids are non-reproducible? > > Why not have user_id = hash(user_name) ? Then they *are* reproducible. That'd be cool, but how would you implement such a hash, that returns something fixed between 0 and 1024? That doesn't sound feasible, although I'm no hash function expert. > (I've tried finding the spot where those user accounts are generated/updated > but so far have been unable to) > > Anyway, this is just to record the problem and workaround. I won't do > further research on this problem on it on this computer. > > The "gdm" system account is gone by now because I've removed gdm from the > OS configuration--and I don't plan on adding it ever again. I experienced the exact same problem as you. My topmost /var/lib/gdm directory has the correct permissions, but it contains stale entries that were created in the past by a different GDM user whose ID is no longer the same: --8<---------------cut here---------------start------------->8--- /var/lib/gdm: total 616 drwx------ 1 gdm gdm 46 Sep 16 09:09 . drwxr-xr-x 1 root root 222 May 7 20:40 .. drwxr-xr-x 1 nixbld04 opendht 62 Dec 7 2021 .cache drwx------ 1 nixbld04 opendht 44 Dec 7 2021 .config -rw------- 1 955 gdm 1146880 Sep 16 09:09 core drwxr-xr-x 1 nixbld04 opendht 10 Dec 7 2021 .local /var/lib/gdm/.cache: total 0 drwxr-xr-x 1 nixbld04 opendht 62 Dec 7 2021 . drwx------ 1 gdm gdm 46 Sep 16 09:09 .. drwxr-xr-x 1 nixbld04 opendht 384 Dec 7 2021 fontconfig drwxr-xr-x 1 nixbld04 opendht 6 Dec 7 2021 ibus drwxr-xr-x 1 nixbld04 opendht 34 Dec 7 2021 mesa_shader_cache /var/lib/gdm/.cache/fontconfig: total 84 drwxr-xr-x 1 nixbld04 opendht 384 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 62 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 18496 Dec 7 2021 23ef510a04af7dd5ac1a2dbd06c4afd1-le64.cache-7 -rw-r--r-- 1 nixbld04 opendht 272 Dec 7 2021 269249ae71e4e445ff7f16f21dcb6de5-le64.cache-7 -rw-r--r-- 1 nixbld04 opendht 256 Dec 7 2021 50fa4f3b9c91fead50cbfcdae3296c45-le64.cache-7 -rw-r--r-- 1 nixbld04 opendht 50584 Dec 7 2021 a927202dec7f348d7a0569dcad9f19a8-le64.cache-7 -rw-r--r-- 1 nixbld04 opendht 200 Dec 7 2021 CACHEDIR.TAG /var/lib/gdm/.cache/ibus: total 0 drwxr-xr-x 1 nixbld04 opendht 6 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 62 Dec 7 2021 .. drwxr-xr-x 1 nixbld04 opendht 16 Dec 7 2021 bus /var/lib/gdm/.cache/ibus/bus: total 172 drwxr-xr-x 1 nixbld04 opendht 16 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 6 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 173300 Dec 7 2021 registry /var/lib/gdm/.cache/mesa_shader_cache: total 36 drwxr-xr-x 1 nixbld04 opendht 34 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 62 Dec 7 2021 .. drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 02 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 72 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 88 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 a3 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 c4 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 f9 -rw-r--r-- 1 nixbld04 opendht 1310728 Dec 7 2021 index /var/lib/gdm/.cache/mesa_shader_cache/02: total 4 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 34 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 868 Dec 7 2021 f0edfe0ef96096640b39ff4d2786b503a60a43 /var/lib/gdm/.cache/mesa_shader_cache/72: total 4 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 34 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 989 Dec 7 2021 7cd650943c7a3136f424df6a67c7897f922307 /var/lib/gdm/.cache/mesa_shader_cache/88: total 4 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 34 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 755 Dec 7 2021 d03ceaeebc55f4b3c972e855775b2c21381b60 /var/lib/gdm/.cache/mesa_shader_cache/a3: total 4 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 34 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 1187 Dec 7 2021 2d688084f93805f8921dab8d7a8de5e0f1bc66 /var/lib/gdm/.cache/mesa_shader_cache/c4: total 4 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 34 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 523 Dec 7 2021 93ffa46c262472c8d01161a581304a790b71ff /var/lib/gdm/.cache/mesa_shader_cache/f9: total 4 drwxr-xr-x 1 nixbld04 opendht 76 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 34 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 742 Dec 7 2021 14f5ad63c0e5edcc46473d056d0b5e38415f99 /var/lib/gdm/.config: total 0 drwx------ 1 nixbld04 opendht 44 Dec 7 2021 . drwx------ 1 gdm gdm 46 Sep 16 09:09 .. drwx------ 1 nixbld04 opendht 26 Dec 7 2021 gnome-session drwx------ 1 nixbld04 opendht 6 Dec 7 2021 ibus drwx------ 1 nixbld04 opendht 500 Dec 7 2021 pulse /var/lib/gdm/.config/gnome-session: total 0 drwx------ 1 nixbld04 opendht 26 Dec 7 2021 . drwx------ 1 nixbld04 opendht 44 Dec 7 2021 .. drwx------ 1 nixbld04 opendht 0 Dec 7 2021 saved-session /var/lib/gdm/.config/gnome-session/saved-session: total 0 drwx------ 1 nixbld04 opendht 0 Dec 7 2021 . drwx------ 1 nixbld04 opendht 26 Dec 7 2021 .. /var/lib/gdm/.config/ibus: total 0 drwx------ 1 nixbld04 opendht 6 Dec 7 2021 . drwx------ 1 nixbld04 opendht 44 Dec 7 2021 .. drwx------ 1 nixbld04 opendht 78 Dec 8 2021 bus /var/lib/gdm/.config/ibus/bus: total 4 drwx------ 1 nixbld04 opendht 78 Dec 8 2021 . drwx------ 1 nixbld04 opendht 6 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 380 Dec 8 2021 c096feaf19ce3a0a450915775e7ec8e3-unix-0 /var/lib/gdm/.config/pulse: total 64 drwx------ 1 nixbld04 opendht 500 Dec 7 2021 . drwx------ 1 nixbld04 opendht 44 Dec 7 2021 .. -rw------- 1 nixbld04 opendht 36864 Dec 7 2021 c096feaf19ce3a0a450915775e7ec8e3-card-database.tdb -rw------- 1 nixbld04 opendht 1 Dec 8 2021 c096feaf19ce3a0a450915775e7ec8e3-default-sink -rw------- 1 nixbld04 opendht 1 Dec 8 2021 c096feaf19ce3a0a450915775e7ec8e3-default-source -rw------- 1 nixbld04 opendht 12288 Dec 8 2021 c096feaf19ce3a0a450915775e7ec8e3-device-volumes.tdb -rw------- 1 nixbld04 opendht 696 Dec 7 2021 c096feaf19ce3a0a450915775e7ec8e3-stream-volumes.tdb -rw------- 1 nixbld04 opendht 256 Dec 7 2021 cookie /var/lib/gdm/.local: total 0 drwxr-xr-x 1 nixbld04 opendht 10 Dec 7 2021 . drwx------ 1 gdm gdm 46 Sep 16 09:09 .. drwxr-xr-x 1 nixbld04 opendht 72 Dec 7 2021 share /var/lib/gdm/.local/share: total 0 drwxr-xr-x 1 nixbld04 opendht 72 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 10 Dec 7 2021 .. drwx------ 1 nixbld04 opendht 0 Dec 7 2021 applications drwx------ 1 nixbld04 opendht 0 Dec 7 2021 gnome-shell drwxr-xr-x 1 nixbld04 opendht 82 Dec 7 2021 icc drwx------ 1 nixbld04 opendht 0 Dec 7 2021 sounds drwxr-xr-x 1 nixbld04 opendht 96 Dec 8 2021 xorg /var/lib/gdm/.local/share/applications: total 0 drwx------ 1 nixbld04 opendht 0 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 72 Dec 7 2021 .. /var/lib/gdm/.local/share/gnome-shell: total 0 drwx------ 1 nixbld04 opendht 0 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 72 Dec 7 2021 .. /var/lib/gdm/.local/share/icc: total 4 drwxr-xr-x 1 nixbld04 opendht 82 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 72 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 1448 Dec 7 2021 edid-5add33c88281761e832ba5f60ec1628e.icc /var/lib/gdm/.local/share/sounds: total 0 drwx------ 1 nixbld04 opendht 0 Dec 7 2021 . drwxr-xr-x 1 nixbld04 opendht 72 Dec 7 2021 .. /var/lib/gdm/.local/share/xorg: total 132 drwxr-xr-x 1 nixbld04 opendht 96 Dec 8 2021 . drwxr-xr-x 1 nixbld04 opendht 72 Dec 7 2021 .. -rw-r--r-- 1 nixbld04 opendht 52932 Dec 8 2021 Xorg.0.log -rw-r--r-- 1 nixbld04 opendht 53878 Dec 8 2021 Xorg.0.log.old -rw-r--r-- 1 nixbld04 opendht 10481 Dec 8 2021 Xorg.1.log -rw-r--r-- 1 nixbld04 opendht 10481 Dec 8 2021 Xorg.1.log.old --8<---------------cut here---------------end--------------->8--- We have some logic in %gdm-activation that was supposed to fix that, but it doesn't kick in, because it has some optimization to not recurse if the top dir has the correct permissions, and since d429878daf3 the top directory permissions are always controlled at system activation time (and this must happen before the gdm activation script runs). I'll follow-up with a patch that puts /var/lib/gdm on a tmpfs. This should avoid many pitfalls people have had. Thanks, Maxim