user not found in "Move Users between Resellers"

seachen

Verified User
Joined
Feb 3, 2007
Messages
491
i have a user, when use search function, can find out.

but when i go "Move Users between Resellers", i cant find it out.

may i know how to fix this problem ?
 
use something like nano, ie.

Code:
nano fix.sh

(copy the code in your ssh window)

press ctrl & x

chmod 755 fix.sh

./fix.sh
 
hi,

i have put the code as below into my server and run it.

#!/bin/sh

cd /usr/local/directadmin/data/users

for r in `ls */reseller.conf | cut -d/ -f1`; do
{
echo "fixing Reseller $r ...";

echo -n '' > $r/users.list

for u in `grep creator=$r */user.conf | cut -d/ -f1`; do
{
ISUSER=`grep -c usertype=user $u/user.conf`
if [ "$ISUSER" = "1" ]; then
echo $u >> $r/users.list
fi
};
done;
};
done;

it show below result after i run it.

[root@vps2385 ~]# ./fix.sh
./fix.sh: line 1: syntax error near unexpected token `do'
./fix.sh: line 1: `n `ls */reseller.conf | cut -d/ -f1`; do'
[root@vps2385 ~]#

it remain same, the user account still not show in "Move Users between Resellers", but when i use "Show All Users", that user is in the list.
 
Back
Top