public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 1/5] targets: Fix enabling PermitRootLogin
@ 2022-11-15  2:51 Matt Turner
  2022-11-15  2:51 ` [gentoo-dev] [PATCH 2/5] targets: Remove remnants of support for the installer Matt Turner
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Matt Turner @ 2022-11-15  2:51 UTC (permalink / raw
  To: gentoo-dev, gentoo-catalyst; +Cc: Matt Turner

The default changed to "prohibit-password" many moons ago, so our ISOs
would not have allowed root logins if not for net-misc/openssh's
IUSE=livecd, which handles this in the ebuild.

Let's go ahead and fix it, so that we can consider removing openssh's
livecd USE flag which would allow us to avoid rebuilding the package for
the ISO.

Signed-off-by: Matt Turner <mattst88@gentoo.org>
---
 targets/support/livecdfs-update.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh
index b7ead552..3f47012b 100755
--- a/targets/support/livecdfs-update.sh
+++ b/targets/support/livecdfs-update.sh
@@ -7,7 +7,8 @@ source /tmp/chroot-functions.sh
 # Allow root logins to our CD by default
 if [ -e /etc/ssh/sshd_config ]
 then
-	sed -i 's:^#PermitRootLogin\ yes:PermitRootLogin\ yes:' \
+	sed -i \
+		-e '/^#PermitRootLogin/c# Allow root login with password on livecds.\nPermitRootLogin Yes' \
 		/etc/ssh/sshd_config
 fi
 
-- 
2.37.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-15  2:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15  2:51 [gentoo-dev] [PATCH 1/5] targets: Fix enabling PermitRootLogin Matt Turner
2022-11-15  2:51 ` [gentoo-dev] [PATCH 2/5] targets: Remove remnants of support for the installer Matt Turner
2022-11-15  2:51 ` [gentoo-dev] [PATCH 3/5] targets: Remove gconf usage Matt Turner
2022-11-15  2:51 ` [gentoo-dev] [PATCH 4/5] targets: Remove openglify usage Matt Turner
2022-11-15  2:51 ` [gentoo-dev] [PATCH 5/5] catalyst: Drop livecd/{xinitrc,xsession,xdm} Matt Turner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox