[FONT=Courier New][SIZE=2][COLOR=#228b22][FONT=Courier New][SIZE=2][COLOR=#228b22]
[SIZE=2][FONT=Courier New][COLOR=#228b22][FONT=Verdana][COLOR=#000000]cd /usr/local/directadmin/data/users[/COLOR][/FONT][/COLOR][/FONT][/SIZE][FONT=Courier New][COLOR=#228b22]
[SIZE=2][FONT=Verdana][COLOR=#000000]for r in `ls */reseller.conf | cut -d/ -f1`; do[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000]{[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000] echo "fixing Reseller $r ...";[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000] echo -n '' > $r/users.list[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000] for u in `grep creator=$r */user.conf | cut -d/ -f1`; do[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000] {[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000] ISUSER=`grep -c usertype=user $u/user.conf`[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000] if [ "$ISUSER" = "1" ]; then[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000] echo $u >> $r/users.list[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000] fi[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000] };[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000] done;[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Verdana][COLOR=#000000]};[/COLOR][/FONT][/SIZE]
[/COLOR][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]