EOF
bin/mo-get-users --full | while read user name; do
+ asciiname=$(echo $name | iconv -f utf-8 -t us-ascii//translit)
passwd=`apg -n1 -m6 -Mncl -E"01lO" | cut -d" " -f1`
passwd_md5=`echo $passwd | bin/md5crypt`
echo $user:x:$uid:$uid:$name:$MO_ROOT/users/$user/$user:/bin/bash >> etcpasswd
echo $user:x:$uid: >> etcgroup
echo $user:$passwd_md5:`expr \`date +%s\` / 86400 - 1`:0:99999:7::: >> etcshadow
- echo "\\user{$user}{$passwd}{$name}" >> logins.tex
+ echo "\\user{$user}{$passwd}{$asciiname}" >> logins.tex
uid=$(($uid + 1))
done