public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
To: gentoo-catalyst@lists.gentoo.org
Cc: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
Subject: [gentoo-catalyst] [PATCH] Remove "PermitRootLogin Yes" injection to sshd_config
Date: Fri, 19 Apr 2024 13:56:34 +0300	[thread overview]
Message-ID: <20240419105733.17568-1-azamat.hackimov@gmail.com> (raw)

net-misc/openssh[livecd] does same thing, but places changes into
/etc/ssh/sshd_config.d/9999999gentoo-livecd.conf. Catalyst itself adds
USE=livecd on stage1 livecd preparation stage, so effectively
PermitRootLogin injection is now useless.

Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
---
 targets/support/livecdfs-update.sh | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh
index 687b9d4e..9fcaadf1 100755
--- a/targets/support/livecdfs-update.sh
+++ b/targets/support/livecdfs-update.sh
@@ -4,14 +4,6 @@ RUN_DEFAULT_FUNCS="no"
 
 source /tmp/chroot-functions.sh
 
-# Allow root logins to our CD by default
-if [ -e /etc/ssh/sshd_config ]
-then
-	sed -i \
-		-e '/^#PermitRootLogin/c# Allow root login with password on livecds.\nPermitRootLogin Yes' \
-		/etc/ssh/sshd_config
-fi
-
 # Clean up the time and set to UTC
 rm -rf /etc/localtime
 cp /usr/share/zoneinfo/UTC /etc/localtime
-- 
2.43.2



                 reply	other threads:[~2024-04-19 10:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240419105733.17568-1-azamat.hackimov@gmail.com \
    --to=azamat.hackimov@gmail.com \
    --cc=gentoo-catalyst@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox