PATH="/usr/local/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin"
export PATH

. need_root

. which_user
. user_info

f="/home/share/setup_login/$user"

[ -e "$f" ] || {
	echo "If you have forgotten your password, please contact our admins." >&2
	exit 1
}
rm -f "$f"

pass=`pwgen -n -c`
autopasswd "$user" "$pass" >/dev/null 2>&1 

echo
echo "$firstname, your login password for ssh and ftp is: $pass"
echo "You can change it with the \`passwd\` command."
echo "Please do not make it the same as your general password."
echo
