The branch releng/15.2 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=b65f63857630b33358e788865a3c485f5e56171d
commit b65f63857630b33358e788865a3c485f5e56171d Author: Colin Percival <[email protected]> AuthorDate: 2026-12-01 04:14:50 +0000 Commit: Colin Percival <[email protected]> CommitDate: 2026-12-03 21:55:37 +0000 EC2: Explicitly block root login via RDP Approved by: re (cperciva) MFC after: 0 days Security: GHSA-3rww-h298-82rx Sponsored by: Amazon (cherry picked from commit 2112d90be7a855d4c9f598409850d54583089de2) (cherry picked from commit ae6b73db4ff63e3dadfc397972e57714f0fc3552) --- release/tools/ec2-desktop.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/release/tools/ec2-desktop.conf b/release/tools/ec2-desktop.conf index 67087ed19c31..80bad717544a 100644 --- a/release/tools/ec2-desktop.conf +++ b/release/tools/ec2-desktop.conf @@ -37,6 +37,9 @@ vm_extra_pre_umount() { # Give users a KDE desktop by default. sed -i '' -e '/exec.*startplasma/s/^# //' ${DESTDIR}/usr/local/etc/xrdp/startwm.sh + # Explicitly disable root login via RDP + sed -i '' -e 's/^AllowRootLogin=true/AllowRootLogin=false/' ${DESTDIR}/usr/local/etc/xrdp/sesman.ini + # Use UID/GID _xrdp. Disabled for now until the port supports this. #sed -i '' -e '/SessionSockdirGroup/s/^#//' ${DESTDIR}/usr/local/etc/xrdp/sesman.ini #sed -i '' -E -e '/runtime_(user|group)=_xrdp/s/^#//' ${DESTDIR}/usr/local/etc/xrdp/xrdp.ini
