Fixed FTP authentication

This commit is contained in:
Kristian Skov 2025-01-15 16:35:37 +01:00
parent fb04feafb1
commit 5423247af6

View File

@ -33,7 +33,7 @@ msg_ok "Application Configured"
msg_info "Setting up FTP Server" msg_info "Setting up FTP Server"
useradd ftpuser useradd ftpuser
FTP_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) 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 mkdir -p /var/www/html
usermod -d /var/www/html ftp usermod -d /var/www/html ftp
usermod -d /var/www/html ftpuser usermod -d /var/www/html ftpuser