From owner-freebsd-isp Mon Oct 27 21:58:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA29095 for isp-outgoing; Mon, 27 Oct 1997 21:58:29 -0800 (PST) (envelope-from owner-freebsd-isp) Received: from proxy.unpar.ac.id (proxy.unpar.ac.id [167.205.206.55]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA29090 for ; Mon, 27 Oct 1997 21:58:21 -0800 (PST) (envelope-from gatut@student.unpar.ac.id) Received: from student.unpar.ac.id (student.unpar.ac.id [167.205.206.58]) by proxy.unpar.ac.id (8.8.5/8.8.5) with ESMTP id MAA02956; Mon, 28 Oct 1996 12:42:34 +0700 (JAVT) Received: from localhost (gatut@localhost) by student.unpar.ac.id (8.8.5/8.8.5.D) with SMTP id NAA22785; Tue, 28 Oct 1997 13:27:40 +0700 (JAVT) Date: Tue, 28 Oct 1997 13:27:40 +0700 (JAVT) From: V Gatut Harijoso To: Bernie Doehner cc: freebsd-ISP@FreeBSD.ORG Subject: Re: Connect time limit In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 23 Oct 1997, Bernie Doehner wrote: > > I read in man login.conf (since 2.2.2?) that it is possible to put > > connection accounting time, something like 'idletime' (maximum idle time), > > monthtime (max login time per month), etc. > > But, I cannot activate. Is the feature not supported yet? > > Thanks. > Not sure about 2.2.2, but under 3.0, the third field in /etc/master.passwd > (the normaly empty field after GID), contains the class you want a user to > be in. 3.0 adduser also asks you about login class. Hope that helps. Thanks. I can add class in 2.2.2. Adding myself to 'default' class (I will try other classes later), then I modify /etc/login.conf, it only works for some fields. See 'cpu-time'. ----/etc/login.conf----------- default:\ :cputime=1h:\ ---cut----- :idletime=10m:\ :sessionlimit=1:\ :tc=auth-defaults: ----/etc/login.conf----------- -Cek with limits------- Enter command # limits Resource limits (current): cputime 3600 secs filesize infinity kb datasize-cur 16384 kb stacksize-cur 8192 kb coredumpsize infinity kb memoryuse-cur 30720 kb memorylocked-cur 10240 kb maxprocesses-cur 64 openfiles-cur 64 ---------------------- Ok. I can see that I have limit in CPU-time, but not for other time-limitation. I read the source of limits.c, it only get information about all above. Is there any utility, tool, or something to read other fields? Or maybe I have to hack limits.c too.. :(