View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 03-06-2007, 08:45 PM   #1
Registered: Mar 2005
Distribution: Debian Testing
Posts: 133

Rep: Reputation: 15
Is there something like memory and CPU quota?

I was wondering, is there any way to stop untrusted local users from running something like:

while(1) {
to bring down the whole system? (eg. some sort of memory quota?)

I tried it on my Debian box with a Core 2 Duo E6300 and 1GB ram from an unprivileged user, and it completely crashed my system within seconds if not shorter.

Is there something conceptual that I am missing here? (eg. should untrusted users not be allowed to run any binary? That doesn't seem practical in eg, a school setting)

Thank you very much
Matthew Lai
Old 03-07-2007, 12:10 AM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
The 'ulimit' command (part of the bash shell; man ulimit) or /etc/security/limits.conf (part of pam, man limits.conf) will do the job.
Old 03-07-2007, 12:28 AM   #3
Registered: Mar 2005
Distribution: Debian Testing
Posts: 133

Original Poster
Rep: Reputation: 15
I just looked it up.
It is amazing.

Strange that I have never heard of it, being an alomst 4 years Linux user.

Thank you =)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Quota for Each Process rpatwal Linux - Enterprise 1 07-21-2006 01:05 AM
Help Configuring the Memory Used by a Process in RedHat? (Cache Memory on CPU) geogecko Linux - General 3 02-23-2005 04:32 PM
CPU and memory usage suguname Linux - Newbie 3 02-01-2005 02:45 PM
rh 9 - old box - new memory - new cpu iamjustauser Linux - Hardware 4 07-26-2004 02:04 PM
linux memory problem & mail quota Ammad Linux - Newbie 1 06-10-2004 07:01 AM

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration