From owner-freebsd-questions@FreeBSD.ORG Fri Jun 10 22:08:15 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 E043216A41C for ; Fri, 10 Jun 2005 22:08:15 +0000 (GMT) (envelope-from mpsouza@centroin.com.br) Received: from gorgo.centroin.com.br (gorgo.centroin.com.br [200.225.63.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44C7843D4C for ; Fri, 10 Jun 2005 22:08:14 +0000 (GMT) (envelope-from mpsouza@centroin.com.br) Received: from hypselo.centroin.com.br (hypselo.centroin.com.br [200.225.63.1]) by gorgo.centroin.com.br (8.12.10/8.12.9) with ESMTP id j5AM8Bwq011033; Fri, 10 Jun 2005 19:08:11 -0300 (EST) Date: Fri, 10 Jun 2005 19:08:11 -0300 (EST) From: Sender: To: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= In-Reply-To: <42A9FEEE.8050707@t-hosting.hu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: freebsd-questions@freebsd.org Subject: Re: login.conf limits X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: scuba@centroin.com.br List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2005 22:08:16 -0000 Hi, =09After doing the modfications on login.conf, run: =09# cap_mkdb /etc/login.conf =09Define the class for each user in passwd, using vipw. The class is the 5th field, in this example the class was defined as "limiteduser": zoruega:$1$50258.20$DdcXReDR/lhZI/1CjjEEd0:102:201:limiteduser:0:0:Zoruega = Linfo,,,,X:/nonexistent:/bin/sh =09It is available after next login for that user. - MArcelo Souza On Fri, 10 Jun 2005, K=F6vesd=E1n G=E1bor wrote: |Hello, | |I've been using FreeBSD 5.3-RELEASE on a production machine, but now I |have some problem with my users. One of them isn't an experienced |FreeBSD user, and accidentally started 19 instances of the same program, |and these instances crashed in the background and produced a load |average about 20. It is a small server with trusted users, but I'd like |to avoid such issues, so I decided to make a strong limit for the users |in login.conf. | |I've read the documentation and login.conf(5), but I haven't read what |to do when I redefine the default class. Should I delete and recreate my |users or the new settings will take effect without doing that? The class |identifier is stored when I create an account or the settings the class |name refers? | |Cheers, | |G=E1bor K=F6vesd=E1n |_______________________________________________ |freebsd-questions@freebsd.org mailing list |http://lists.freebsd.org/mailman/listinfo/freebsd-questions |To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.or= g" | - Marcelo