PDA

View Full Version : user not found in "Move Users between Resellers"



seachen
10-21-2010, 06:30 AM
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 ?

seachen
10-21-2010, 11:04 PM
Hi,

May I know how to fix this.

DirectAdmin Support
10-23-2010, 02:44 PM
Hello,

That function relies on the Users being in the users.list files for each Reseller.
If they're missing, re-build your users.list files:
http://help.directadmin.com/item.php?id=251

John

seachen
10-23-2010, 06:56 PM
hi

may i know how to create fix.sh?

use what cmd?

Peter Laws
10-24-2010, 03:14 AM
use something like nano, ie.


nano fix.sh

(copy the code in your ssh window)

press ctrl & x

chmod 755 fix.sh

./fix.sh

seachen
10-29-2010, 08:34 PM
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.