Creating new user, system hangs

JDiel

Verified User
Joined
Feb 13, 2006
Messages
52
Location
Netherlands
Hey all,

When I want to add a new user, the system starts to hang. When I do a ps aux, I get alot of processes like this:

Code:
root     21575  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21577  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21579  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21581  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21583  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21585  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21587  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21589  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21591  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21593  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21595  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21597  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21599  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21601  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21603  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21605  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21607  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21609  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21611  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21613  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21615  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21617  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21619  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21621  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21623  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21625  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21627  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21629  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21631  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21633  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21635  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21637  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21639  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21641  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21643  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21645  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21647  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21649  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21651  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21653  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21655  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21657  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21659  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21661  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21663  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21665  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21667  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21669  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21671  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21673  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21675  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21677  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21679  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21681  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21683  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21685  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh
root     21687  0.0  0.1  2400 1036 ?        S    07:50   0:00 /bin/sh /usr/local/directadmin/scripts/custom/user_create_post.sh

I'm running Debian Sarge 3.1 release 5 which I recently reinstalled due to a server crash. Also, I created a user with a name I'm sure of that doesn't exist on the system yet, but DA tells me it DOES exist, after that the system hangs or I get a "fork" message like this:

Code:
bash: fork: Resource temporarily unavailable

Would anyone happen to know a sollution for this problem?

Thanks and regards,

Jeroen.
 
Last edited:
Hi and thanks for the reply, here's the code:

Code:
#!/bin/sh
for i in `ls /usr/local/directadmin/data/users`; do
{
  username=$i spam=ON /usr/local/directadmin/scripts/custom/user_create_post.sh
};
done;
exit 0;

Regards, Jeroen.
 
username=$i spam=ON /usr/local/directadmin/scripts/custom/user_create_post.sh

I am not a very good shell scripter but it looks like that line is a loop. Looks like it is going to continually run itself.
 
Hi there,

Please have a look at this link: http://help.directadmin.com/item.php?id=117

Here DA says that when you create a new user that Spam Assassin is automatically enabled when you've put that code in that file. Still it might still be faulty tho.

Regards, Jeroen.

Edit: Argh!! I think I misunderstood what it all said there, I'll post back when it works.
 
Oke I fixed it, I totally misunderstood the help page I was talking about before.

Thanks! :)

Regards, Jeroen.
 
#!/bin/sh
for i in `ls /usr/local/directadmin/data/users`; do
{
username=$i spam=ON /usr/local/directadmin/scripts/custom/user_create_post.sh
};
done;
exit 0;

This is not in the user_create_post.sh script. It is run separately one time to enable existing users.
 
Back
Top