From owner-freebsd-current Tue Apr 27 19: 8: 1 1999 Delivered-To: freebsd-current@freebsd.org Received: from eterna.binary.net (eterna.binary.net [12.13.84.6]) by hub.freebsd.org (Postfix) with ESMTP id 364ED14BD0 for ; Tue, 27 Apr 1999 19:07:55 -0700 (PDT) (envelope-from nathan@rtfm.net) Received: from matrix.binary.net (nathan@matrix.binary.net [12.13.120.2]) by eterna.binary.net (8.9.1a/8.9.1) with ESMTP id VAA59662; Tue, 27 Apr 1999 21:07:54 -0500 (CDT) Received: (from nathan@localhost) by matrix.binary.net (8.9.1a/8.9.1) id VAA07396; Tue, 27 Apr 1999 21:07:42 -0500 (CDT) Date: Tue, 27 Apr 1999 22:07:42 -0400 From: Nathan Dorfman To: Andrzej Bialecki Cc: Stephane Legrand , Luigi Rizzo , current@FreeBSD.ORG Subject: Re: does login.conf limitations work ? Message-ID: <19990427220742.A4971@rtfm.net> References: <199904241337.PAA01205@sequoia.mondomaineamoi.megalo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: ; from Andrzej Bialecki on Sat, Apr 24, 1999 at 04:39:20PM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Apr 24, 1999 at 04:39:20PM +0200, Andrzej Bialecki wrote: > On Sat, 24 Apr 1999, Stephane Legrand wrote: > > > > That's also my impression. I glipmsed the whole source tree and I couldn't > > > find any place where the limits are enforced. BTW. what entity should > > > enforce login time limits? Kernel? Some user-space daemon? > > > > > > > To report a login.conf success, i've used on a 2.2.8 system the > > "cputime" ressource limit. I set it to zero and that worked very > > well. So may be only some limits are implemented ? cputime is just a plain old process rlimit. Implementing it should be as easy as calling setrlimit(). On the other hand, login time is a different story. Generally I've found that most of the stuff in login.conf, at least that which does things like setting rlimits, environment, and modifying some login behavior (motd, nologin, mail check, etc.) works. -- Nathan Dorfman The statements and opinions in my Unix Admin @ Frontline Communications public posts are mine, not FCC's. "The light at the end of the tunnel is the headlight of an approaching train." --/usr/games/fortune To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message