Web Hosting Talk







View Full Version : How to offer shells?


Curto
10-29-2003, 12:57 AM
What methods do you use for offering shell accounts? How do you limit bandwidth/cpu usage/diskspace?

I've asked around and the several providers I've spoken with don't actually implement any restrictions... they just monitor manually.

DaZ
10-29-2003, 01:04 AM
either setup VDS's for the users or manually monitor :)

Curto
10-29-2003, 01:19 AM
other than a VDS is there any way to limit?

salad
10-29-2003, 02:37 AM
grsecurity kernel patches are really
the best way to handle this.

http://grsecurity.net

John[H4Y]
10-30-2003, 12:19 AM
Is there really any market for shell accounts these days? Who still has a use for them?

Curto
10-30-2003, 12:22 AM
There is still a market... people use them for ircds and bouncers.

Anyone know how you'd set resource (cpu/ram/bandwidth) restructions per user in freebsd?

John[H4Y]
10-30-2003, 12:33 AM
Originally posted by Curto
There is still a market... people use them for ircds and bouncers.

Anyone know how you'd set resource (cpu/ram/bandwidth) restructions per user in freebsd?

Best way is to use VDS software such as Virtuozzo or Server Exchange. It is pretty tough to implement these restrictions effectively otherwise.

OverlordQ
10-30-2003, 01:08 AM
Ick use UML, Virtuozzo has horrible liscensing fees :)

Curto
10-30-2003, 01:25 AM
Originally posted by OverlordQ
Ick use UML, Virtuozzo has horrible liscensing fees :)

How good is UML under FreeBSD 5.1?

OverlordQ
10-30-2003, 01:39 AM
In that case go with Virtuozzo :) afaik UML wont work on BSD, since *BSD's dont run the linux kernel.


Just a side note, I may be way off :)

phpdeveloper
10-30-2003, 10:34 AM
Actually, you can set CPU/RAM restrictions on user processes (including those run in the shell) using 'ulimit' command (no bandwidth restrictions tho), more info here:
http://www.unidata.ucar.edu/cgi-bin/man-cgi?ulimit+1

Mdot
10-30-2003, 11:27 AM
Originally posted by Curto
There is still a market... people use them for ircds and bouncers.

Anyone know how you'd set resource (cpu/ram/bandwidth) restructions per user in freebsd?

man login.conf and read ahead.

as for UML - FreeBSD has jails, which imho is much easier to use and it does not load system as much as UML does (haven't tried SKAS patch, so can't comment how good it is).

regards,

OverlordQ
10-30-2003, 01:57 PM
With SKAS patch you get approx 97% performance comapred to a non-uml same-spec'd box.

DaZ
10-30-2003, 04:39 PM
UML wont work with FreeBSD

FreeBSD has jails, which operate similar to UML, with a few restrictions such as IMCP packets are disabled, but from what you seem to want, jails will be fine for you :)