From owner-freebsd-questions@FreeBSD.ORG Thu Dec 6 14:32:10 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 98862D9D for ; Thu, 6 Dec 2012 14:32:10 +0000 (UTC) (envelope-from vagner@bsdway.ru) Received: from bsdway.ru (bsdway.ru [62.109.17.46]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA7C8FC0C for ; Thu, 6 Dec 2012 14:32:09 +0000 (UTC) Received: from localhost (off-40.addr.fotocdn.net [193.105.179.40]) (authenticated bits=0) by bsdway.ru (8.14.4/8.14.5) with ESMTP id qB6EW1MP023808 for ; Thu, 6 Dec 2012 17:32:01 +0300 (MSK) (envelope-from vagner@bsdway.ru) Date: Thu, 6 Dec 2012 18:32:01 +0400 From: Vagner To: FreeBSD questions Mail List Subject: Login class and limit Message-ID: <20121206143201.GB42583@vagner-wrk.bsdway.ru> Mail-Followup-To: FreeBSD questions Mail List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bsdway.ru [62.109.17.46]); Thu, 06 Dec 2012 17:32:01 +0300 (MSK) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2012 14:32:10 -0000 Hi all! I need help configuring limits for users at FreeBSD 8.3. I set next options and parametrs at login.conf(5): > mydaemon:\ > :cputime=5s:\ > :memoryuse=500m:\ > :vmemoryuse=500m:\ > :tc=default: changed class for user, running cap_mkdb(1). But if i running process a user with the class mydaemon, which uses cpu time > 5s , process not finished. > # sudo -u daemon limits > Resource limits (current): > cputime infinity secs but: > # su - daemon -c 'limits' > Resource limits (current): > cputime 5 secs Why? And how can i running process without su(1) to apply limits for my user class? Thx! -- Respectfully, Stanislav Putrya System administrator FotoStrana.Ru Ltd. ICQ IM: 328585847 Jabber-GoogleTalk: root.vagner mob.phone SPB: +79215788755 mob.phone RND: +79525600664 email: vagner@bsdway.ru email: putrya@playform.ru email: root.vagner@gmail.com site: bsdway.ru site: fotostrana.ru ---------------------------------------- ( ) ASCII ribbon campaign X - against HTML, vCards and / \ - proprietary attachments in e-mail