From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cMUJDaYjxWB64QAAgWs5BA (envelope-from ) for ; Sat, 12 Jun 2021 23:14:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uDTeB6YjxWA4LAAA1q6Kng (envelope-from ) for ; Sat, 12 Jun 2021 21:14:14 +0000 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 52D06ADB2 for ; Sat, 12 Jun 2021 23:14:13 +0200 (CEST) Received: from localhost ([::1]:53098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsAxI-0001zR-DE for larch@yhetil.org; Sat, 12 Jun 2021 17:14:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsAx8-0001zI-7S for bug-guix@gnu.org; Sat, 12 Jun 2021 17:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsAx8-0003Mi-0H for bug-guix@gnu.org; Sat, 12 Jun 2021 17:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lsAx7-00085U-SC for bug-guix@gnu.org; Sat, 12 Jun 2021 17:14:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48974: A possible shepherd bug (it's very minor) Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 12 Jun 2021 21:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48974 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: jbranso@dismail.de, 48974@debbugs.gnu.org Received: via spool by 48974-submit@debbugs.gnu.org id=B48974.162353240631028 (code B ref 48974); Sat, 12 Jun 2021 21:14:01 +0000 Received: (at 48974) by debbugs.gnu.org; 12 Jun 2021 21:13:26 +0000 Received: from localhost ([127.0.0.1]:42187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsAwY-00084O-4K for submit@debbugs.gnu.org; Sat, 12 Jun 2021 17:13:26 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:26757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsAwV-00084F-Td for 48974@debbugs.gnu.org; Sat, 12 Jun 2021 17:13:25 -0400 Received: from nijino.local (62-116-34-49.adsl.highway.telekom.at [62.116.34.49]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4G2Vmv24P3z1LB1y; Sat, 12 Jun 2021 23:13:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4G2Vmv24P3z1LB1y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1623532399; bh=M9GhlLMfXMD+YAO+Hesp9ouLHU3jA4MjfZq63NYOEq0=; h=Subject:From:To:Date:In-Reply-To:References:From; b=ZVL4EzI1BE951lboFtWnxFBeJTWW96fhLJ9TiSpnHxnw438jHikDRmTUwqlAJjKRr 6ciB3KufQINetdCyOp462Zf3K+Mpe9X1+qrlaWoFqvp1AJ83XAMFtMOUtky5K3YgdW /ewTsBCrtr/o6ZS/0BD5YBOStHEmr5fmPV164gWI= Message-ID: <13bff20e418f1cec97cdda49ffed51544c5c9402.camel@student.tugraz.at> From: Leo Prikler Date: Sat, 12 Jun 2021 23:13:18 +0200 In-Reply-To: <3192d62ef790c16fb2dfb894d9ccb160@dismail.de> References: <9d5c5334eacfae92ace38329e55bc4a91929e206.camel@student.tugraz.at> <87wnqz43k0.fsf@dismail.de> <3192d62ef790c16fb2dfb894d9ccb160@dismail.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623532453; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=M9GhlLMfXMD+YAO+Hesp9ouLHU3jA4MjfZq63NYOEq0=; b=W2rowJbHHv2XmOwXvnZ+SsYwi2/awCG48mtfJjsV0g4slAPIa3uOgdA2yVSYq6MBN+hHdh 40IRecTw9idHhNb2rE/GySPcTe9pKvcPjPjX0RtCorHzhZHK4r2QMQ7kJx4MtKFrNgbRWc HeRnny3T3cdT5tzIDMSBbizMjBLt8/TPp7Ijx0FoWf3BPAbE6RfdlOfEOSGmgbX3CMIxdi fLBeG9pRfqci0Sjvfb4DicobMcvi+wI5lpgI6jPjD5sn0pihIEHzgvoEASG5DdL0o82IzV JYGFVrT+GusYY3vorIyNlHDLmJ5CPIJ6Bj7uvkzcVjEcSYJzyohnTFt/TgN29A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623532453; a=rsa-sha256; cv=none; b=hNDEtGud/bmJR5kQYYaLQ+dEiA7aSjb3tlzNPb0iRtNx75TSJ9UlwXtFIsPO2iRvILIcUe CxNi7fOwy59ZtNxWmN16yiVezcs0kwIVwEuFM6rQgFyiKcdk6TrC8dEe5ObDpqJWRvRN/t wdyT7QstPL1gdWtiMNKpVnzPr5k+Wew6I6+M8I/PEyx5AlBzqyYVeJLdxc/zKrCIQzjO52 sprdAfMsbqaHYqLUupr40joYvxYmzWsURaFv0/yK4qjRG4/R+r+kVHbAFMzW8L57LxJ7tw RrHUC/3heCNScr3ZPOEh2UYugEJNyi94O3YTNnSWBNt4g92bvPaW4M9gh27Y0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=ZVL4EzI1; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: 0.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=ZVL4EzI1; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 52D06ADB2 X-Spam-Score: 0.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: HyUDeogiz42r Hi, Am Samstag, den 12.06.2021, 20:09 +0000 schrieb jbranso@dismail.de: > June 12, 2021 3:39 PM, "Leo Prikler" > wrote: > > > Am Samstag, den 12.06.2021, 09:26 -0400 schrieb Joshua Branson: > > > > > Hello! > > > > > > I've had this issue every since I enabled automatic login on my > > > guix > > > system like so: > > > > > > #+BEGIN_SRC scheme > > > (define %my-desktop-services > > > (modify-services > > > %desktop-services > > > (mingetty-service-type config => > > > (mingetty-configuration > > > (inherit config) > > > ;;auto login as joshua > > > (auto-login "joshua"))))) > > > > > > (operating-system > > > ... > > > (services (list %my-desktop-services))) > > > #+END_SRC > > > > I am sorry to say this, but rather than this being (just) a bug > > with > > Thank you for speaking so gently! :) > > > shepherd, your config looks seriously borked. Why are you asking > > Guix > > to autologin you on *every available console*? > > HAHAHA! That's what I'm doing! I forgot that! Honestly, I did that, > because I > couldn't figure out how to code "just auto log into console 1 ONLY". > :) > > Would you mind explaining how bad of a decision this is? Is this a > BAD security practice? It is seriously bad practice. With just one TTY, you can usually suspend it with programs such as vlock, plus it's expected that you actually sit in front of the given TTY when the autologin happens. With all TTYs though, anyone could switch to the other and "lol, now I'm jbranso". The only configuration, that could possibly be worse is autologin root :P (Granted, it probably still takes physical access to exploit, but it's something your family/friends could likely do just to troll you.) > I'll tell you what, why don't we leave this "bug" open for a > week...I'll try to write > the code that does what I want, and I'll email the answer. > > Then I'll edit the manual to provide an example! I'm pretty sure that the actual bug also exists, just not sure whether that's on your config or on shepherd. Using TTY1 for graphical stuff is also somewhat rare in Guix land, I presume. (Or rather, I can't think of it as anything but a container for debug output spam :D) As for getting this to work only on TTY1, you do get the config object, so you can do stuff like (if (is-tty1? config) (inherit+autologin config) config) Note of course, that is-tty1? is not a procedure that's ready-made, but one that you'd need to build from primitives such as record accessors. Regards, Leo