Date: Tue, 28 Oct 1997 13:27:40 +0700 (JAVT) From: V Gatut Harijoso <gatut@student.unpar.ac.id> To: Bernie Doehner <bad@uhf.wireless.net> Cc: freebsd-ISP@FreeBSD.ORG Subject: Re: Connect time limit Message-ID: <Pine.BSF.3.95q.971028131239.21861C-100000@student.unpar.ac.id> In-Reply-To: <Pine.BSF.3.96.971023010705.7065A-100000@uhf.wireless.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.. :(
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.971028131239.21861C-100000>