aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2022-11-14 21:20:21 -0500
committerMatt Turner <mattst88@gentoo.org>2022-11-17 18:41:05 -0500
commitca8ec7382a0b8c06b9bd3b69e5d7a791e0fa8915 (patch)
treec85588431771c71ecbc1f340c5f8447df969b8b4 /targets
parentamd64 definition: add a subarch "x86_64" identical to "amd64" (diff)
downloadcatalyst-ca8ec7382a0b8c06b9bd3b69e5d7a791e0fa8915.tar.gz
catalyst-ca8ec7382a0b8c06b9bd3b69e5d7a791e0fa8915.tar.bz2
catalyst-ca8ec7382a0b8c06b9bd3b69e5d7a791e0fa8915.zip
targets: Fix enabling PermitRootLogin
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>
Diffstat (limited to 'targets')
-rwxr-xr-xtargets/support/livecdfs-update.sh3
1 files changed, 2 insertions, 1 deletions
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