From owner-freebsd-questions@FreeBSD.ORG Thu Jan 13 22:51:40 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 325DC16A4CE for ; Thu, 13 Jan 2005 22:51:40 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8972543D31 for ; Thu, 13 Jan 2005 22:51:39 +0000 (GMT) (envelope-from chrcoluk@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so269658rna for ; Thu, 13 Jan 2005 14:51:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=lNoTxaWWN3X72lbGQwtu+Rw8VdErWQqt5SIchXlPn6geufR79nw3D0xRDso0Y/dfoMPX7iIq2pgPYkGIFHJl9WXNJf41qc7Nq7J2zyjroVEErwyeUpTKO8MN/6m/McK+rulaj2gCg6lcfhQ8eLbQQXXcfzEXj5AVgZ7YGs/Hp0E= Received: by 10.38.77.70 with SMTP id z70mr256998rna; Thu, 13 Jan 2005 14:51:36 -0800 (PST) Received: by 10.39.1.45 with HTTP; Thu, 13 Jan 2005 14:51:36 -0800 (PST) Message-ID: <3aaaa3a050113145153a03dbb@mail.gmail.com> Date: Thu, 13 Jan 2005 22:51:36 +0000 From: Chris To: freebsd-questions@freebsd.org In-Reply-To: <444qhlgdsd.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <003101c4f90d$8471d440$9601a8c0@staticbasement> <444qhlgdsd.fsf@be-well.ilk.org> cc: Static Subject: Re: login.conf problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Chris List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 22:51:40 -0000 I think the problem here is login.conf cannot do things like limit cpu% it just kills the process when it reaches the cpu time used, also on limiting processes say if you want to limit a shell user to run 3 bg processes you cant limit to 3 processes in login.conf because it will break fg processes for things like running make. In this scenarion I believe you need some custom type of script to do what you are looking for. Chris On 13 Jan 2005 17:33:22 -0500, Lowell Gilbert wrote: > "Static" writes: > > > Im trying to add a class that will limit processes and session limits, I added this > > ircd:\ > > :tc=default:\ > > :copyright=/etc/COPYRIGHT:\ > > :welcome=/etc/motd:\ > > :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\ > > :path=~/bin /bin /usr/bin /usr/local/bin:\ > > :manpath=/usr/share/man /usr/local/man:\ > > :nologin=/var/run/nologin:\ > > :ftp-chroot:\ > > :cputime=1h30m:\ > > :datasize=100M:\ > > :vmemoryuse=100M:\ > > :stacksize=2M:\ > > :memorylocked=4M:\ > > :memoryuse=8M:\ > > :filesize=100M:\ > > :coredumpsize=8M:\ > > :openfiles=24:\ > > :maxproc=32:\ > > :priority=0:\ > > :requirehome:\ > > :idletime=30m:\ > > :sessionlimit=2:\ > > :umask=002:\ > > :ignoretime@:\ > > Then I proceed to run "cap_mkdb /etc/login.conf" then I make a user with the login class of ircd, but the session limits dont seem to work, was curious if anyone out there knew how to fix that > > Which ones don't work? [Not all of them are implemented.] > > How did you add the new user? Did the password database get rebuilt? > > Do the limits appear to be changed in the output of limits(1)? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >