User creation problem

r0kawa

Verified User
Joined
Nov 17, 2005
Messages
17
Error Creating User farking

Details


Error creating user:
Cannot find a home directory after the system user creation for farking
The home directory for farking was not created.


This is the problem when I try to add a user in my system. Wether it's administrator, reseller, or a normal user.

Recently someone has broken into my system, and has deleted all log file for directadmin.

I've created the log directory for directadmin

/var/log/directadmin

[root@zenpipe directadmin]# ls -ald /etc/shadow
-r-------- 1 root root 8771 Jul 25 00:52 /etc/shadow
[root@zenpipe directadmin]# ls -al
total 32
drwxr-xr-x 2 root root 4096 Jul 25 12:25 .
drwxr-xr-x 6 root root 4096 Jul 25 12:01 ..
-rw-r--r-- 1 root root 0 Jul 25 12:24 error.log
-rw-r--r-- 1 root root 0 Jul 25 12:25 errortasq.log
-rw-r--r-- 1 root root 0 Jul 25 12:25 security.log
-rw-r--r-- 1 root root 0 Jul 25 12:25 system.log
[root@zenpipe directadmin]# pwd
/var/log/directadmin


Is there any problem in it also ? I've also install mod_security for security purposes.

Any guide, hint is appreciated.
 
Here are the permissions of the files in /var/log/directadmin:

Code:
-rw-r--r--   1 diradmin diradmin  1119 Jun 26 19:28 error.log
-rw-r--r--   1 diradmin diradmin  4803 Jul 25 00:10 errortaskq.log
-rw-------   1 diradmin diradmin  1762 Jun  1 21:31 install.log
-rw-r--r--   1 diradmin diradmin  3106 Jul 24 10:38 security.log
-rw-r--r--   1 diradmin diradmin 23710 Jul 25 00:11 system.log
 
thanks for the info. I already found the answer for the can't create home directory. It's actually because someone deleted /etc/login.defs file.
 
Last edited:
Back
Top