New installation problem - error creating admin user

dinek

Verified User
Joined
Mar 25, 2004
Messages
7
Location
Poland
Hello,

I am installing DA on RHE 3. DA cannot add admin user and I can't log into it. This is what I get:

Backup of /etc/httpd/conf/httpd.conf to /etc/httpd/conf/httpd.conf.back successfull
Install of /usr/local/directadmin/data/templates/httpd.conf to /etc/httpd/conf/httpd.conf successfull
Backup of /etc/proftpd.conf to /etc/proftpd.conf.back successfull
Install of /usr/local/directadmin/data/templates/proftpd.conf to /etc/proftpd.conf successfull
Install of /usr/local/directadmin/data/templates/directadmin.conf to /usr/local/directadmin/conf/directadmin.conf successfull
directory /usr/local/directadmin/log created
directory /usr/local/directadmin/data created
directory ./data/admin created
directory /usr/local/directadmin/data/tickets created
directory ./data/users created
directory /home/tmp created
directory /usr/local/directadmin/data/sessions created
directory /etc/virtual created
directory /var/spool/virtual created
directory ./data/admin/ips created
directory ./data/admin/packages created
ip.list written successfully
./data/admin/login.hist written successfully
./data/admin/next_ticket.number already exists
./data/admin/services.status written successfully
tickets.list written successfully
*** Error creating Admin User : Can't get a lock on ./data/users/admin/user.usage<br>
<br>
Can't get a lock on ./data/users/admin/domains.list<br>
<br>
Can't get a lock on ./data/users/admin/user.conf<br>
<br>
Can't get a lock on ./data/users/admin/reseller.usage<br>
<br>
Can't get a lock on ./data/users/admin/users.list<br>
<br>
Can't get a lock on ./data/users/admin/reseller.conf<br>
<br>
Can't get a lock on ./data/users/admin/reseller.allocation<br>
<br>
<br>
Error creating user: useradd: Gruppe admin vorhanden - Wenn Sie den Benutzer zur Gruppe
hinzufügen wollen, benutzen Sie -g.
<br>
Cannot find a home directory after the system user creation for admin<br>
The home directory for admin was not created.<br>

*** Unable to write the admin's user files

Please help me

Best regards.
Dino
 
i'm currently experiencing allmost the same problem om FreeBSD 5.4, any suggestions? Rest of the install went ok but now i can't login to the panel.

*** Error creating Admin User : Can't get a lock on ./data/users/admin/user.usage<br>
<br>
Can't get a lock on ./data/users/admin/domains.list<br>
<br>
Can't get a lock on ./data/users/admin/user.conf<br>
<br>
Can't get a lock on ./data/users/admin/reseller.usage<br>
<br>
Can't get a lock on ./data/users/admin/users.list<br>
<br>
Can't get a lock on ./data/users/admin/reseller.conf<br>
<br>
Can't get a lock on ./data/users/admin/reseller.allocation<br>
<br>
<br>
Error creating user: pwd_mkdb: warning, unknown root shell
pw: user 'admin' alrem<br>
Cannot find a home directory after the system user creation for admin<br>
The home directory for admin was not created.<br>
 
Since it's happening on both CentOS and on FreeBSD, I'm going to suggest that DA staff take a look at the problem.

Jeff
 
Hello,

Firstly, the "unabel to read ./data/users/admin/*" messages can be ignored. DA is just reading in the user in case the admin account already existed. Prevents overwriting existing settings.

The important errors from these 2 posts are:
Error creating user: useradd: Gruppe admin vorhanden - Wenn Sie den Benutzer zur Gruppe
hinzufügen wollen, benutzen Sie -g.
and
Error creating user: pwd_mkdb: warning, unknown root shell
pw: user 'admin' alrem<br>
The 2nd error "unknown root shell" can likely be fixed by adding /sbin/nologin to your /etc/shells file. On Linux it would be /bin/false into the /etc/shells file.

The german error:
admin vorhanden - Wenn Sie den Benutzer zur Gruppe
hinzufügen wollen, benutzen Sie -g.
I believe is looking for the admin group. Try running:
Code:
groupadd admin
then run "./directadmin i" again (from the directadmin directory).

John
 
Error creating user: useradd: Gruppe admin vorhanden - Wenn Sie den Benutzer zur Gruppe
hinzufügen wollen, benutzen Sie -g.

means that this user allready exist.
to remove this user use command : groupdel admin
it's will remove admin and then try to add him again by DA.
 
We always add admin to the server before we load DA. DA works fine with the admin added by us.

Jeff
 
Back
Top