From owner-freebsd-current Fri Apr 9 23:44:49 1999 Delivered-To: freebsd-current@freebsd.org Received: from xkis.kis.ru (xkis.kis.ru [195.98.32.200]) by hub.freebsd.org (Postfix) with ESMTP id 41B0415048 for ; Fri, 9 Apr 1999 23:44:46 -0700 (PDT) (envelope-from dv@dv.ru) Received: from localhost (dv@localhost) by xkis.kis.ru (8.9.3/8.9.0) with SMTP id KAA00627 for ; Sat, 10 Apr 1999 10:42:33 +0400 (MSD) Date: Sat, 10 Apr 1999 10:42:33 +0400 (MSD) From: Dmitry Valdov X-Sender: dv@xkis.kis.ru To: freebsd-current@freebsd.org Subject: Re: DoS from local users (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 9 Apr 1999, Chris Costello wrote: > Date: Fri, 9 Apr 1999 18:30:31 -0500 > From: Chris Costello > Reply-To: chris@calldei.com > To: Dmitry Valdov > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: DoS from local users > > On Fri, Apr 9, 1999, Dmitry Valdov wrote: > > Hi! > > > > Try it: > > > > cat > qqq > > echo $$ > > echo ~/qqq|~/qqq|~/qqq|~/qqq|~/qqq > > > > Ctrl-D > > > > ./qqq > > > > Is there Any way to fix it? > > You typically want to set a restriction as to how many > processes a user can spawn. This is done by editing > /etc/login.conf and changing the user's login class, see the man > page for 'login.conf'. > I'm about CPU usage, not about many processes. See: CPU states: 17.8% user, 0.0% nice, 81.7% system, 0.5% interrupt, 0.0% idle on any (tested on P2-45) machine. CPU is used by SYSTEM, not by USER. So I can't restrict it with login.conf And load average can be up to 20-40 :( Please don't redirect me to -questions, it's a kernel problem, not just config. Dmitry. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message