limited cpu usage

This is a discussion on limited cpu usage within the Linux Security forums, part of the System Security and Security Related category; Hi I am kind of new to redhat security, and for my class, i need to give users accounts to ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-25-2003
Mark
 
Posts: n/a
Default limited cpu usage

Hi

I am kind of new to redhat security, and for my class, i need to give
users accounts to my server(i only have ssh open). But these students
run commands to make my cpu go at 100% so no one else can use it.

Is their a way to prevent this? I locked their account, but my
teacher would like use to give everyone access so locking them out is
not possible.

I looked into nice, but it seems to only work for commands..not for
all users.


thanks in advance for the help

take care

mark
Post a follow-up to
Reply With Quote
  #2 (permalink)  
Old 06-25-2003
Wolfgang Erlenkötter
 
Posts: n/a
Default Re: limited cpu usage

Mark wrote:

> Hi
>
> I am kind of new to redhat security, and for my class, i need to give
> users accounts to my server(i only have ssh open). But these students
> run commands to make my cpu go at 100% so no one else can use it.
>
> Is their a way to prevent this? I locked their account, but my
> teacher would like use to give everyone access so locking them out is
> not possible.
>


Have you looked for ulimit?

Wolfgang
Reply With Quote
  #3 (permalink)  
Old 06-25-2003
Jem Berkes
 
Posts: n/a
Default Re: limited cpu usage

>> I am kind of new to redhat security, and for my class, i need to give
>> users accounts to my server(i only have ssh open). But these students
>> run commands to make my cpu go at 100% so no one else can use it.

>
> Have you looked for ulimit?


Isn't that shell specific? i.e. can't a user still run a compiled program
that fork bombs or other wise consumes too many resources?

--
Jem Berkes
http://www.pc-tools.net/
Windows, Linux & UNIX software

Reply With Quote
  #4 (permalink)  
Old 06-25-2003
Wolfgang Erlenkötter
 
Posts: n/a
Default Re: limited cpu usage

Jem Berkes wrote:

>>> I am kind of new to redhat security, and for my class, i need to give
>>> users accounts to my server(i only have ssh open). But these students
>>> run commands to make my cpu go at 100% so no one else can use it.

>>
>> Have you looked for ulimit?

>
> Isn't that shell specific? i.e. can't a user still run a compiled program
> that fork bombs or other wise consumes too many resources?
>


No, first i have set ulimit -t 4 -H. Then I have started a program, that
uses a lot of cpu. After 4 seconds it will be killed.

In bash the command is ulimit. In csh/tcsh it is limit.

Wolfgang
Reply With Quote
  #5 (permalink)  
Old 06-25-2003
Jem Berkes
 
Posts: n/a
Default Re: limited cpu usage

>> Isn't that shell specific? i.e. can't a user still run a compiled
>> program that fork bombs or other wise consumes too many resources?
>>

>
> No, first i have set ulimit -t 4 -H. Then I have started a program,
> that uses a lot of cpu. After 4 seconds it will be killed.
>
> In bash the command is ulimit. In csh/tcsh it is limit.


Sounds good then, even though the shell still plays a major role. For
instance, I don't think this would stop someone from uploading a malicious
binary and executing it via CGI, or mail pipe, for instance.

Also, don't users have control over what their ulimit is? Is there a way to
prevent them from using the ulimit bash commands to change the settings?

--
Jem Berkes
http://www.pc-tools.net/
Windows, Linux & UNIX software

Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:14 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0