--- alx-src/branches/alxconf-060/functions/config_auth.sh 2011/05/07 11:00:49 1969 +++ alx-src/branches/alxconf-060/functions/config_auth.sh 2011/05/10 16:29:13 2023 @@ -20,14 +20,18 @@ # first of all get the vars get_auth_settings - [ -n "${ALX_AUTH_SHELL_PW}" ] && \ - usermod -p $(openssl passwd -1 ${ALX_AUTH_SHELL_PW}) root + if [[ ! -z ${ALX_AUTH_SHELL_PW} ]] + then + ( echo "${ALX_AUTH_SHELL_PW}"; sleep 0.1; echo "${ALX_AUTH_SHELL_PW}" ) | passwd root + fi - [ -n "${ALX_AUTH_STATION_PW}" ] && \ - usermod -p $(openssl passwd -1 ${ALX_AUTH_SHELL_PW}) ${ALX_UNPRIV_USER} + if [[ ! -z ${ALX_AUTH_STATION_PW} ]] + then + ( echo "${ALX_AUTH_STATION_PW}"; sleep 0.1; echo "${ALX_AUTH_STATION_PW}" ) | passwd ${ALX_UNPRIV_USER} + fi # vnc passwd (min 6 chars) - if [ -n "${ALX_AUTH_VNC_PW}" ] + if [[ ! -z ${ALX_AUTH_VNC_PW} ]] then # pipe it 2x; 1st for new pw, 2nd to validate HOME=/root vncpasswd &> /dev/null << EOF