From owner-freebsd-questions@FreeBSD.ORG Thu Dec 6 21:47:43 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 0E7CE193 for ; Thu, 6 Dec 2012 21:47:43 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from nk11p00mm-asmtp004.mac.com (nk11p00mm-asmtp004.mac.com [17.158.161.3]) by mx1.freebsd.org (Postfix) with ESMTP id DEFFE8FC08 for ; Thu, 6 Dec 2012 21:47:42 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com ([17.209.4.71]) by nk11p00mm-asmtp004.mac.com (Oracle Communications Messaging Server 7u4-26.01(7.0.4.26.0) 64bit (built Jul 13 2012)) with ESMTPSA id <0MEM0023QN12DQ00@nk11p00mm-asmtp004.mac.com> for freebsd-questions@freebsd.org; Thu, 06 Dec 2012 20:46:15 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8185,1.0.431,0.0.0000 definitions=2012-12-06_06:2012-12-06,2012-12-06,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1203120001 definitions=main-1212060137 Subject: Re: Login class and limit From: Chuck Swiger In-reply-to: <20121206203638.GA4540@vagner-wrk.bsdway.ru> Date: Thu, 06 Dec 2012 12:46:13 -0800 Message-id: <9412CF9C-AF9B-4D58-8FD7-D8971180D8AC@mac.com> References: <20121206143201.GB42583@vagner-wrk.bsdway.ru> <37A52274-D877-4AED-82F3-CF058DEC9DBE@mac.com> <20121206203638.GA4540@vagner-wrk.bsdway.ru> To: Vagner X-Mailer: Apple Mail (2.1085) Cc: FreeBSD questions Mail List 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 21:47:43 -0000 On Dec 6, 2012, at 12:36 PM, Vagner wrote: [ ... ] >> Either use one of the su/sudo flavors I mention above, or "/bin/sh -l" >> to provide a login env to the process? > > ie means to implement restrictions limits(1) and login.conf(5) for daemons is not possible? Sure, it's possible: run the daemon within a login shell. However, normally, daemons aren't started from a login shell and do not inherit the limits setup by login.conf. Regards, -- -Chuck