can't Create new user in Directadmin after update

mhiizadi

Verified User
Joined
Jan 23, 2014
Messages
29
hi , after updating directadmin , we can't create new users .

we got below error in DA control panel :
Error Creating User hoseina

Details

Error creating User: useradd.orig: group 'hoseina' does not exist
Cannot find a home directory after the system user creation for hoseina
The home directory for hoseina was not created.

and tried from ssh :
[root@space1 etc]# useradd hosineaa
useradd.orig: cannot lock /etc/passwd; try again later.
[root@space1 etc]#

i search on DA docs and found 4 things :

Post #1 : https://help.directadmin.com/item.php?id=172
i did it , but not help and problem not solved .

Post #2 : i removed below files :
mv group.lock group.lock.old
mv gshadow.lock gshadow.lock.old
mv shadow.lock shadow.lock.old
mv subgid.lock subgid.lock.old
mv subuid.lock subuid.lock.old
it's not help and still we can't create any new user .


Post #3 : we increase UID_MAX and GID_MAX to 600,000 , but not help .

#4 : we ran " /usr/local/directadmin/scripts/set_permissions.sh all " not helps .

#5 permission for /home is :
[root@space1 etc]# ls -ld /home
drwx--x--x. 346 root root 12288 Dec 20 14:13 /home

is there any way to help me to find our what is the problem ?


Thanks .
 
You could try a reboot, does that help?

Do you have enough space left on your disk, especially for the /etc/ directory (normally that's part of the at / mount so to say).
 
Back
Top