# $Id$ # configures the system authentification via mysql db settings config_auth() { # first of all get the vars evaluate_table client_auth if [[ ! -z ${client_auth_shell} ]] then ( echo "${client_auth_shell}"; sleep 0.1; echo "${client_auth_shell}" ) | passwd root > /dev/null fi if [[ ! -z ${client_auth_station} ]] then ( echo "${client_auth_station}"; sleep 0.1; echo "${client_auth_station}" ) | passwd ${ALX_UNPRIV_USER} > /dev/null fi # vnc passwd (min 6 chars) if [[ ! -z ${client_auth_vnc} ]] then # pipe it 2x; 1st for new pw, 2nd to validate HOME=/root vncpasswd &> /dev/null << EOF ${client_auth_vnc} ${client_auth_vnc} EOF fi }