From d1f6ca64a6a72c7ae29e59c35b29522f1697cd5d Mon Sep 17 00:00:00 2001 From: Moaead Yahya Date: Tue, 20 Jan 2026 23:02:03 +0000 Subject: [PATCH] fix(birdnet-pi): enable web terminal login when no password is set The pi user account was locked when pi_password was not configured, causing the web terminal login to fail immediately with "Connection Closed". Now the pi user is given an empty password when no password is specified, enabling passwordless web terminal login. Fixes #2393 --- birdnet-pi/rootfs/etc/cont-init.d/99-run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh index 458c739e4..85c69008c 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh @@ -30,7 +30,9 @@ if [[ -n "${PI_PASSWORD:-}" ]]; then echo "pi:${PI_PASSWORD}" | chpasswd bashio::log.info "Password set successfully for user pi." else - bashio::log.info "No password specified for user pi. Keeping existing password." + # Set empty password to allow web terminal login when no password is configured + passwd -d pi + bashio::log.info "No password specified for user pi. Enabled passwordless login." fi # Use timezone defined in add-on options if available