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

MSbrotherCOM

New member
Joined
Sep 5, 2003
Messages
4
It show this message when login Control Panel 'Unable to determine Usertype , user.conf needs to be repaired' , and all the Website under the server only show the apache welcome page , MySQL , email , sub-domain all has problem , how to fix it ?
 

Attachments

  • error.jpg
    error.jpg
    10 KB · Views: 580
Hello,

This generally happens when a hard drive fills up. If DirectAdmin tries to write to a file with a full hard drive, the file will be of size zero, which would cause the error. To fix the problem, you'd need to fill up the user.conf files again.. all the settings will have to be re-entered, but the main thing you need is the user.conf and the following 2 lines:

usertype=user
username=name

where usertype can be one of user, reseller or admin, and where username is the user's name. The user.conf files are located in /usr/local/directadmin/data/users/name/user.conf
again, where name is the user's name. There may be other files that are affected by this, such as the domain.list ... perhaps the easiest way to fix these users is to delete them and start over.

John
 
user.conf

At me the same problem that is incorrect in a file?

[root@220892 users]# cd admin
[root@220892 admin]# ls -la
total 68
drwx--x--x 4 root diradmin 4096 Mar 2 15:11 .
drwx--x--x 6 root diradmin 4096 Mar 1 23:55 ..
-rw-r--r-- 1 root root 9 Mar 1 06:21 bandwidth.tally
-rw------- 1 root diradmin 0 Feb 26 20:19 crontab.conf
-rw-r--r-- 1 root diradmin 3600 Mar 2 01:38 DAdminUsage.bytes
drwx--x--x 2 root diradmin 4096 Feb 26 20:19 domains
-rw------- 1 root diradmin 0 Feb 26 20:19 domains.list
-rw------- 1 root diradmin 63 Feb 27 01:25 ip.list
-rw------- 1 root diradmin 740 Mar 1 22:54 login.hist
drwx------ 2 root diradmin 4096 Mar 1 23:55 packages
-rw------- 1 root diradmin 46 Feb 29 13:21 packages.list
-rw------- 1 root diradmin 153 Mar 1 23:55 reseller.allocation
-rw------- 1 root diradmin 425 Mar 1 06:20 reseller.conf
-rw------- 1 root diradmin 134 Mar 2 00:40 reseller.usage
-rw------- 1 root diradmin 163 Feb 26 20:19 ticket.conf
-rw------- 1 root diradmin 510 Mar 2 01:37 user.conf
-rw------- 1 root diradmin 18 Mar 1 23:55 users.list
-rw------- 1 root diradmin 122 Mar 1 06:21 user.usage
-rw-r--r-- 1 root diradmin 1322 Feb 26 20:19 u_welcome.txt
[root@220892 admin]# joe user.conf
Processing '/etc/joe/joerc'...done
Processing '/etc/joe/joerc'...done
IW user.conf (Modified) Row 83 Col 1 3:21 Ctrl-K H for help
mysql=unlimited
name=admin
nemailf=unlimited
nemailml=unlimited
nemailr=unlimited
nemails=unlimited
ns1=ns1.ds.nac.net
ns2=ns2.ds.nac.net
nsubdomains=unlimited
package=admin
php=ON
quota=unlimited
sentwarning=no
skin=power_user
ssh=ON
ssl=ON
suspend_at_limit=OFF
suspended=no
username=admin
usertype=admin
vdomains=unlimited
zoom=100

*******************************
 
I have already made it was necessary to correct a configuration on folders. I do not know as to tell on English because I Russian but I think you have understood.
 
Hello,

The file is fine, it's just the permissions set on it. The permissions on the user.conf should be:

-rw------- 1 diradmin diradmin 510 Mar 2 01:37 user.conf

Just so that you can fix everythhing, here is the listing of the directory for an admin:
Code:
[root@server admin]# ll
total 1060
drwxr-xr-x    5 diradmin diradmin     4096 Mar  2 10:12 .
drwxr-xr-x   32 diradmin diradmin     4096 Mar  1 13:46 ..
-rw-------    1 diradmin diradmin       80 Feb 29 22:01 backup.conf
-rw-r--r--    1 root     root           14 Mar  1 01:21 bandwidth.tally
-rw-------    1 diradmin diradmin       30 Jan 19 13:06 crontab.conf
-rw-r--r--    1 diradmin diradmin      762 Mar  2 10:12 DAdminUsage.bytes
drwx--x--x    2 diradmin diradmin     4096 Mar  2 10:12 domains
-rw-------    1 diradmin diradmin      101 Mar  1 00:50 domains.list
-rw-r--r--    1 root     ftp             0 Mar  1 00:50 ftp.passwd
-rw-r--r--    1 diradmin diradmin    19853 Mar  1 00:50 httpd.conf
-rw-------    1 diradmin diradmin       60 Nov  2 13:01 ip.list
-rw-------    1 diradmin diradmin      727 Mar  2 10:12 login.hist
drwx------    2 diradmin diradmin     4096 Mar  1 13:46 packages
-rw-------    1 diradmin diradmin       11 Feb 19 14:19 packages.list
-rw-------    1 diradmin diradmin      197 Mar  1 13:46 reseller.allocation
-rw-------    1 diradmin diradmin      464 Mar  1 01:20 reseller.conf
-rw-------    1 diradmin diradmin      139 Mar  1 13:46 reseller.usage
-rw-------    1 diradmin diradmin      155 Feb 29 22:01 ticket.conf
-rw-r--r--    1 diradmin diradmin       16 Jan 20  2003 user.comments
-rw-------    1 diradmin diradmin      544 Mar  1 13:45 user.conf
-rw-------    1 diradmin diradmin      105 Mar  1 13:46 users.list
-rw-------    1 diradmin diradmin      120 Mar  1 01:21 user.usage
-rw-r--r--    1 diradmin diradmin     1322 Jan 29 19:58 u_welcome.txt
John
 
I have same problem

i have same problem.
When i check user.conf, this file is good
Code:
account=ON
aftp=ON
bandwidth=unlimited
cgi=ON
creator=root
cron=ON
date_created=Mon Oct 23 12:30:18 2006
dnscontrol=ON
docsroot=./data/skins/enhanced
domainptr=unlimited
[email protected]
ftp=unlimited
ip=202.134.18.37
language=en
lastquotaupdate=1162191833
mysql=unlimited
name=admin
nemailf=unlimited
nemailml=unlimited
nemailr=unlimited
nemails=unlimited
ns1=ns1.xxxxx.com
ns2=ns2.xxxxx.com
nsubdomains=unlimited
package=admin
php=ON
quota=unlimited
skin=enhanced
spam=ON
ssh=ON
ssl=ON
suspend_at_limit=OFF
suspended=no
sysinfo=ON
username=admin
usertype=admin
vdomains=unlimited
zoom=100
And chmod is good but error was still there
Code:
drwx--x--x   4 diradmin diradmin 4096 Nov  1 00:16 .
drwx--x--x  14 diradmin diradmin 4096 Oct 31 09:14 ..
-rw-r--r--   1 root     root     1553 Nov  1 00:10 bandwidth.tally
-rw-------   1 diradmin diradmin    0 Oct 23 12:30 crontab.conf
-rw-r--r--   1 diradmin diradmin  523 Nov  1 00:16 DAdminUsage.bytes
drwx--x--x   2 diradmin diradmin 4096 Nov  1 00:10 domains
-rw-------   1 diradmin diradmin   12 Oct 23 17:27 domains.list
-rw-r--r--   1 root     ftp         0 Oct 23 17:27 ftp.passwd
-rw-r--r--   1 diradmin diradmin 2117 Oct 25 10:45 httpd.conf
-rw-------   1 diradmin diradmin   14 Oct 23 12:30 ip.list
-rw-------   1 diradmin diradmin  744 Oct 31 23:40 login.hist
drwx------   2 diradmin diradmin 4096 Oct 23 12:30 packages
-rw-------   1 diradmin diradmin    0 Oct 23 12:30 packages.list
-rw-------   1 diradmin diradmin  121 Nov  1 00:10 reseller.allocation
-rw-------   1 diradmin diradmin  447 Oct 27 08:55 reseller.conf
-rw-------   1 diradmin diradmin  131 Nov  1 00:10 reseller.usage
-rw-------   1 diradmin diradmin  165 Oct 27 07:28 ticket.conf
-rw-------   1 diradmin diradmin  610 Oct 30 14:03 user.conf
-rw-------   1 diradmin diradmin    0 Oct 27 14:44 users.list
-rw-------   1 diradmin diradmin  149 Nov  1 00:10 user.usage
-rw-r--r--   1 diradmin diradmin 1327 Oct 23 12:30 u_welcome.txt
who can help me?
 
CHeck all directories above that.. make sure that that "diradmin" user can read and write to that directory.
Often times admin accidently set /usr to 700, or something like that.

Also make sure that the disk isn't full so that the lock file can be created as the user.conf is being read. Failure to create the lock file by the diradmin user would also prevent the file from correctly being read in.

John
 
Back
Top