Error -- I want to create secondary admin by command line

pmquang

New member
Joined
Aug 7, 2011
Messages
4
Hi there,

I have a question.
I have root permission on my server CentOS and I have just install directadmin. Now, I want to create secondary admin by command line. I do:

# useradd secondaryadmin -s /bin/bash
# passwd secondaryadmin
# cd /usr/local/directadmin/data/users
# ll
admin
# mkdir secondaryadmin
# cp -rf admin/* secondaryadmin/

after that, I vim config file secondaryadmin/user.conf
username=secondaryadmin
name = admin --> save all.

I access IP:2222 and login with secondaryadmin and appear error output :
User Error

Details

Unable to determine Usertype
user.conf needs to be repaired
.

How do I fix this problem. Thanks.
Best regards,
 
Hi there,

I have a question.
I have root permission on my server CentOS and I have just install directadmin. Now, I want to create secondary admin by command line. I do:

# useradd secondaryadmin -s /bin/bash
# passwd secondaryadmin
# cd /usr/local/directadmin/data/users
# ll
admin
# mkdir secondaryadmin
# cp -rf admin/* secondaryadmin/

after that, I vim config file secondaryadmin/user.conf
username=secondaryadmin
name = admin --> save all.

I access IP:2222 and login with secondaryadmin and appear error output :
User Error

Details

Unable to determine Usertype
user.conf needs to be repaired
.

How do I fix this problem. Thanks.
Best regards,

Sorry
name = secondaryadmin
:)
 
The DirectAdmin login requires more than you get with useradd. Admin users should be installed through DirectAdmin.

The only option would be to figure out which files need to be modified, and to modify them. While someone may have done this and can help you, there's no official support for it.

Jeff
 
Hi everyone,

I fixed this problem.

I can do the same things in Cpanel /var/cpanel/resellers and add line "user:all".

Because I want to control my customer which use directadmin in secret, and they changed admin passwork.

I chmod and chown directory and file in /usr/local/directadmin/data/secondaryadmin/ --> fixed this problem.

Add secondaryadmin in /usr/local/directadmin/data/admin/admin.list.

Thank everyone.

Best regards.
 
so sorry,

True path /usr/local/directadmin/data/users/secondaryadmin.

Good day.
:)
 
Back
Top