Help - Search - Members - Calendar
Full Version: Ulimit -u. Help!!!
The Planet Forums > Control Panels > cPanel/WHM
DeMiNe0
Hey everyone!
Im having some problems on my Cpanel7 RH7.3 Rackshack.

Im trying to setup an IRCd on my machine to use as a support chat for my business. The problem is the IRCd requires Atleast a 250 Ulimit.

Now I created an account using Cpanel. And i just made a dummy domain of user.shell. I used cpanel to create it so i could get FTP support on that account.
I enabled Shell for it and i made sure the it wasn't jailshelled.

When i login and do "ulimit -u" I get a value of 100. But as root if i run the same command, i get 14335.

How can i increase the Ulimit of virtual accounts??

Or if i cant increase virtual account Ulimits, How would i go about making it so i can FTP into an account that i made with the adduser command in ssh?

Thanks for the help!!
eth00
The default I think is much above 250. I had an ircd at another hosting provider with 2000+ connections and do not think I ran into issues until atleast in the 1000-2000 range. The real way to adjust the unlimit it a kernel recompile. Using su and unlimit you can basically "hack" around it.

BUT you should not have any trouble with only a 200 user ircd. Remember that the RS tos/aup does not allow for linked ircds.
eth00
Did not read the entire post try this

ulimit -u 250
su username

Then run the ircd, this is really a quick hack kernel compile is best but it should work for now...
DeMiNe0
Kernal Recompile *shutters*
Any cpanel Howto for kernal recompiles? Im going to try the ulimit -u 250 command
i wanna get somthing perminate though
eth00
Don't think there are any on RS forums. This is not a normal kernel upgrade, you would need to manually compile the source which is not the best idea on a remote server the first time icon_wink.gif

Best bet is using google to find something good on kernel recompiling but be warned it is VERY VERY dangerous.
DeMiNe0
ya..... i dont think i'll be doing that. I'll try the ulimit thingy.
eth00
jailshell-2.05a$ ulimit -u
14335

I thought so, on my box its way above 100. Perhaps try using "adduser" to add that account via ssh.
DeMiNe0
i would need some way of getting ftp support on that account then.
eth00
just try it. I forgot lasttime I used su but when I ssh in I got 1024 which is what I thought it should be.
DeMiNe0
ya i know that works fine. Cpanel sets a 100 ulimit on the account for some reasen. If i can use adduser but also find a way to get an ftp account on there it would be perfect.
eth00
thats wierd how I did mine, I think I ended up using adduser then later on adding the account via whm not sure what I did.

That being said there must be some way to bypass is using whm, if nobody else chimes in I would put in a TT to cpanel and they can help more. RS might be able to, but really beyond normal support. WHM has a tt submission area.
DeMiNe0
Thanks icon_razz.gif
SwirlDot
I ran into the problem before... I think I edited some bash config files or something in /etc/ that set the ulimit. Lemme take a look at what I did, I had to raise it for a user that runs a custom programmed game server (with permission, of course icon_wink.gif
SwirlDot
Ok.. Basically, there are a bunch of bash files.. You need to edit the lines that look like:

QUOTE
if [ "$USER" = "root" ]; then
        ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
else
        ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null
fi


For example, I changed mine:

QUOTE
if [ "$USER" = "root" ]; then
        ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
elif [ "$USER" = "bjusten" ]; then
        ulimit -n 1024 -u 500 -m 500000 -d 500000 -s 8192 -c 500000 -v 500000 2>/dev/null
else
        ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null
fi


Hope that helps.. That was in /etc/bashrc but we had to change ALOT of files to the new code, because they all have it. Try grepping around.

Steve
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.