From owner-freebsd-questions@FreeBSD.ORG Fri Jan 14 19:32:45 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 326BD16A4CE for ; Fri, 14 Jan 2005 19:32:45 +0000 (GMT) Received: from mail26.sea5.speakeasy.net (mail26.sea5.speakeasy.net [69.17.117.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0CED43D4C for ; Fri, 14 Jan 2005 19:32:44 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 22990 invoked from network); 14 Jan 2005 19:32:44 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail26.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 14 Jan 2005 19:32:44 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id ADDB568; Fri, 14 Jan 2005 14:32:43 -0500 (EST) Sender: lowell@be-well.ilk.org To: "Static" References: <003101c4f90d$8471d440$9601a8c0@staticbasement> <444qhlgdsd.fsf@be-well.ilk.org> <004901c4f9fc$804aff50$9601a8c0@staticbasement> From: Lowell Gilbert Date: 14 Jan 2005 14:32:43 -0500 In-Reply-To: <004901c4f9fc$804aff50$9601a8c0@staticbasement> Message-ID: <44r7knq010.fsf@be-well.ilk.org> Lines: 74 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: login.conf problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 19:32:45 -0000 Don't top-post, please. "Static" writes: > > ----- Original Message ----- > From: "Lowell Gilbert" > To: "Static" > Cc: > Sent: Thursday, January 13, 2005 4:33 PM > Subject: Re: login.conf problems > > > > "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)? > > > > Resource limits (current): > cputime infinity secs > filesize infinity kb > datasize 524288 kb > stacksize 65536 kb > coredumpsize infinity kb > memoryuse infinity kb > memorylocked infinity kb > maxprocesses 867 > openfiles 1735 > sbsize infinity bytes > vmemoryuse infinity kb > - > I used adduser and just placed ircd as the user class And no diagnostic messages were printed when you ran cap_mkdb? Use vipw(8) to check the login database; make sure "ircd" is the fifth field in the user's entry. And when the user logs in, make sure there are no errors in the logs or terminal about trouble with the capability entry.