From 5423247af6de228dd93bc6a10dfbd21f3c2c81b3 Mon Sep 17 00:00:00 2001 From: Kristian Skov Date: Wed, 15 Jan 2025 16:35:37 +0100 Subject: [PATCH] Fixed FTP authentication --- install/dotnetaspwebapi-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/dotnetaspwebapi-install.sh b/install/dotnetaspwebapi-install.sh index d8a33594..77cb7644 100644 --- a/install/dotnetaspwebapi-install.sh +++ b/install/dotnetaspwebapi-install.sh @@ -33,7 +33,7 @@ msg_ok "Application Configured" msg_info "Setting up FTP Server" useradd ftpuser FTP_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) -usermod --password ${FTP_PASS} ftpuser +usermod --password $(echo ${FTP_PASS} | openssl passwd -1 -stdin) ftpuser mkdir -p /var/www/html usermod -d /var/www/html ftp usermod -d /var/www/html ftpuser