22-gen-htpasswd 180 B

123456
  1. _PWD='changeme'
  2. _HASH=$(printf '%s' "admin:superglue:$_PWD" | md5sum | cut -d' ' -f1)
  3. echo "admin:superglue:$_HASH" > /etc/lighttpd/htpasswd
  4. echo -e "$_PWD\n$_PWD" | passwd root