* [gentoo-catalyst] [PATCH] Remove "PermitRootLogin Yes" injection to sshd_config
@ 2024-04-19 10:56 Azamat H. Hackimov
0 siblings, 0 replies; only message in thread
From: Azamat H. Hackimov @ 2024-04-19 10:56 UTC (permalink / raw
To: gentoo-catalyst; +Cc: Azamat H. Hackimov
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-19 10:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-19 10:56 [gentoo-catalyst] [PATCH] Remove "PermitRootLogin Yes" injection to sshd_config Azamat H. Hackimov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox