[bug] user to reseller script

gate2vn

Verified User
Joined
Nov 9, 2004
Messages
522
Location
Oslo
I am using the script /usr/local/directadmin/scripts/user_to_reseller.sh for converting an user to a reseller. It said:

User 'jon' has been converted to reseller.

However, reseller configuration files are not created. So in DirectAdmin, error appears: cannot read the configuration files. I needed to create reseller.conf file manually, then change one setting in DirectAdmin, so DA can read the file, then the reseller account is working.
 
DA - 1.711. OS - AL 9.8
@gate2vn which exactly files were not created ? because I do not see any problems with it:
Code:
[root@server2 ~]# ls -al /usr/local/directadmin/data/users/convertres/res*
ls: cannot access '/usr/local/directadmin/data/users/convertres/res*': No such file or directory
[root@server2 ~]#
[root@server2 ~]# /usr/local/directadmin/scripts/user_to_reseller.sh convertres
User 'convertres' has been converted to reseller.
[root@server2 ~]#
[root@server2 ~]# ls -al /usr/local/directadmin/data/users/convertres/res*
-rw------- 1 diradmin diradmin 136 Sep 28 11:26 /usr/local/directadmin/data/users/convertres/reseller.allocation
-rw------- 1 diradmin diradmin 734 Sep 28 11:26 /usr/local/directadmin/data/users/convertres/reseller.conf
-rw------- 1 diradmin diradmin   0 Sep 28 11:26 /usr/local/directadmin/data/users/convertres/reseller.history
-rw------- 1 diradmin diradmin 225 Sep 28 11:26 /usr/local/directadmin/data/users/convertres/reseller.usage
[root@server2 ~]#
My existing reseller, which has been created as reseller, also has the same files:
Code:
[root@server2 ~]# ls -al /usr/local/directadmin/data/users/rrrrrr/res*
-rw------- 1 diradmin diradmin 217 Sep 28 00:12 /usr/local/directadmin/data/users/rrrrrr/reseller.allocation
-rw------- 1 diradmin diradmin 700 Sep  9 09:29 /usr/local/directadmin/data/users/rrrrrr/reseller.conf
-rw------- 1 diradmin diradmin 156 Sep  1 04:20 /usr/local/directadmin/data/users/rrrrrr/reseller.history
-rw------- 1 diradmin diradmin 292 Sep 28 00:09 /usr/local/directadmin/data/users/rrrrrr/reseller.usage
[root@server2 ~]#
 
Code:
# ls /usr/local/directadmin/data/users/enduser/reseller*
ls: cannot access '/usr/local/directadmin/data/users/enduser/reseller*': No such file or directory

# /usr/local/directadmin/scripts/user_to_reseller.sh enduser
User 'enduser' has been converted to reseller.

# ls /usr/local/directadmin/data/users/enduser/reseller* -l
-rw------- 1 diradmin diradmin 154 Sep 28 15:34 /usr/local/directadmin/data/users/enduser/reseller.allocation
-rw------- 1 diradmin diradmin   0 Sep 28 15:34 /usr/local/directadmin/data/users/enduser/reseller.history

It's missing reseller.conf file.
 
Back
Top