Can't add or delete users

SICK

Verified User
Joined
Dec 19, 2003
Messages
24
Can't add or delete users (SOLVED!!)

Hello,

I was adding and deleting a user just fine today.... trying to get all of the customization done etc.... Then one time I deleted the my test user it said that delete user failed... So I manualy deleted it.... ever since then I can't add or delete user's I will get a seg fault some times, user exists, can't read user's files... just about every error that has been posted on this board about this issue.... After DA seg faults, I check to see if the user is there, it gets half created... I have followed all of the options in this forum and I still keep getting errors.... Today is the first day that I have actually tried to use the CP to create users etc... Also in the service.status file I set Named to OFF but it still starts when the DA tasks run...... any help is appreciated....
 
Last edited:
nothing happens... I can add the user to the system just fine.
 
Ill have to get the log.... Now ssh won't work... and when I try to log in via console I get - id: can't find account name for uid xxx..... when I try to ssh to it I see login_get_lastlogin can't get last login :fatal..... I am using an account I created before I installed DA..... the only account I can login with without errors is root.
 
2004:02:25-13:23:54: Sys:setUGPriv:gid==9999
2004:02:25-13:23:54: Sys:setUGPriv:gid==9999
2004:02:25-13:25:27: Sys:setUGPriv:gid==9999
2004:02:25-13:25:27: Sys:setUGPriv:gid==9999
2004:02:25-13:25:27: Sys:setUGPriv:gid==9999
2004:02:25-13:25:27: Sys:setUGPriv:gid==9999
2004:02:25-13:25:27: Sys:setUGPriv:gid==9999
2004:02:25-13:25:51: Sys:setUGPriv:gid==9999
2004:02:25-13:25:51: Sys:setUGPriv:gid==9999
2004:02:25-13:25:51: Sys:setUGPriv:gid==9999
2004:02:25-14:35:30: Sys:setUGPriv:gid==9999
2004:02:25-14:35:30: Sys:setUGPriv:gid==9999
2004:02:25-14:35:30: Sys:setUGPriv:gid==9999
2004:02:25-14:35:30: Sys:setUGPriv:gid==9999
2004:02:25-14:35:30: Sys:setUGPriv:gid==9999
2004:02:25-14:35:57: Sys:setUGPriv:gid==9999
2004:02:25-14:35:57: Sys:setUGPriv:gid==9999
2004:02:25-14:35:57: Sys:setUGPriv:gid==9999
2004:02:25-14:52:54: Sys:setUGPriv:gid==9999
2004:02:25-14:52:54: removing old lock: /etc/passwd.lock
2004:02:25-14:52:54: Sys:setUGPriv:gid==9999
2004:02:25-14:52:54: Sys:setUGPriv:gid==9999
2004:02:25-14:52:54: Sys:setUGPriv:gid==9999
2004:02:25-14:52:54: Sys:setUGPriv:gid==9999
2004:02:25-14:52:54: userdel nate : userdel: user nate does not exist

2004:02:25-15:33:48: User
2004:02:25-15:38:59: User
2004:02:25-15:38:59: Unable to create /domains/nate.com
2004:02:25-15:38:59: Unable to copy /usr/local/directadmin/data/templates/default to /domains/nate.com/public_html : <b>A directory
component in /domains/nate.com/public_html does not exist or is a dangling symbolic link</b><br>
Unable to create the directory /domains/nate.com/public_html<br>

2004:02:25-15:38:59: *** Segmentation fault *** getlock(/domains/nate.com/.htpasswd/.protected.list) : start : User: admin : 207.191
.11.50 : /CMD_ACCOUNT_USER : (null) : action=create&username=natetest&[email protected]&passwd=xxxxxx&passwd2=xxxxxx&domain=na
te.com&package=Default&ip=x.x.x.x&add=Submit
2004:02:25-16:18:05: User
2004:02:25-16:18:05: Unable to create /domains/nate.com
2004:02:25-16:18:05: Unable to copy /usr/local/directadmin/data/templates/default to /domains/nate.com/public_html : <b>A directory
component in /domains/nate.com/public_html does not exist or is a dangling symbolic link</b><br>
Unable to create the directory /domains/nate.com/public_html<br>

2004:02:25-16:18:05: *** Segmentation fault *** getlock(/domains/nate.com/.htpasswd/.protected.list) : start : User: admin : x.x.x.x : /CMD_ACCOUNT_USER : (null) : action=create&username=nate&[email protected]&passwd=xxxxx&passwd2=xxxxxxx&domain=nate.co
m&bandwidth=0&ubandwidth=ON&quota=0&uquota=ON&vdomains=0&uvdomains=ON&nsubdomains=0&unsubdomains=ON&nemails=0&nemailf=0&nemailml=0&n
emailr=0&mysql=0&umysql=ON&domainptr=0&udomainptr=ON&ftp=0&uftp=ON&cgi=ON&php=ON&ip=x.x.x.x&add=Submit
2004:02:25-16:24:07: Socket write error: Unknown error
2004:02:25-16:24:07: Error while sending ./data/skins/default/images/help.gif
2004:02:25-16:32:26: User
2004:02:25-16:32:26: Unable to create /domains/test.com
2004:02:25-16:32:26: Unable to copy /usr/local/directadmin/data/templates/default to /domains/test.com/public.html : <b>A dir
ectory component in /domains/test.com/public_html does not exist or is a dangling symbolic link</b><br>
Unable to create the directory /domains/test.com/public_html<br>

2004:02:25-16:32:26: *** Segmentation fault *** getlock(/domains/test.com/.htpasswd/.protected.list) : start : User: admin :x.x.x.x : /CMD_ACCOUNT_USER : (null) : action=create&username=test&[email protected]&passwd=xxxxx4&passwd2=xxxxx&domain=test.com&package=Default&ip=x.x.x.x&add=Submit
[root@box directadmin]#
 
Last edited:
Here is one I just tried

2004:02:26-10:34:44: User
2004:02:26-10:34:44: Unable to create /domains/nate.com
2004:02:26-10:34:44: Unable to copy /usr/local/directadmin/data/templates/default to /domains/nate.com/public_html : <b>A directory component in /domains/nate.com/public_html does not exist or is a dangling symbolic link</b><br>
Unable to create the directory /domains/nate.com/public_html<br>

2004:02:26-10:34:44: *** Segmentation fault *** getlock(/domains/nate.com/.htpasswd/.protected.list) : start : User: admin : x.x.x.x : /CMD_ACCOUNT_USER : (null) : action=create&username=nate&[email protected]&passwd=xxxxxx&passwd2=xxxxxdomain=nate.com&package=Default&ip=x.x.x.x&add=Submit
 
OK..... Got this one fixed!!

1. For some reason it seems DA has changed the guid on the passwd file to 9999 I changed that to root. chgrp root /etc/passwd. The perms on it were set to -rw-r----- so I set that to 644 (-rw-r--r--) Now I can login in with a regular user on the console and with ssh etc...

2. Adding and deleting users kept throwing all these nasty errors and problems. It turns out you MUST run the named server or nothing at all works. I turned it on and adding and deleting works... turn it off everything dies.... I may be trying to go beyond DA's capability here but it would be nice if everything was modular, so it can run independently of each other. Maybe it is and I'm just not doing it right... any comments?
 
Hello,

One thing that really peaked my interest is this line:

2004:02:25-14:52:54: removing old lock: /etc/passwd.lock

Now.. nowhere in the code is /etc/passwd mentioned as all system checks are done using getpwnam("username")

9999 is returned if the getpwnam cannot find the uid/gid for a user, but how on earth that relates to the /etc/passwd being set to 9999 is a bit odd.

Btw, if you want the taskq to not restart services, just add "exit 0" to the top of the boot script after the #!/bin/sh line.

John
 
K I think Im getting somewhere now.... what are the perms on proftpd.passwd supposed to be... also what uid gid should it be????
 
Back
Top