From owner-freebsd-questions Tue May 18 6:28:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailhub.scl.ameslab.gov (mailhub.scl.ameslab.gov [147.155.137.127]) by hub.freebsd.org (Postfix) with ESMTP id 7543214A2D for ; Tue, 18 May 1999 06:27:56 -0700 (PDT) (envelope-from ghelmer@scl.ameslab.gov) Received: from demios.ether.scl.ameslab.gov ([147.155.137.54]) by mailhub.scl.ameslab.gov with esmtp (Exim 1.90 #1) id 10jjvA-00061l-00; Tue, 18 May 1999 08:28:36 -0500 Date: Tue, 18 May 1999 08:27:46 -0500 From: Guy Helmer To: Stanley.Hopcroft@ipaustralia.gov.au Cc: freebsd-questions@freebsd.org Subject: Re: Dumb question. How does one get a user ID in a particular logon class ? In-Reply-To: <4A256775.000D2E03.00@noteshub01.aipo.gov.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 18 May 1999 Stanley.Hopcroft@ipaustralia.gov.au wrote: > I am writing to ask how do non-root and non-default user-ids get the resource > limits specified in a particulat /etc/logon.conf class. > > My FreeBSD-2.2.8 STABLE host says about daemon class > ... > How does a real daemon that's not started by rc* get these limits ? If your daemon is started by su, e.g. "echo '/usr/local/sbin/daemond -args' | su nobody", you could probably use the "-c" flag to su like this: "echo '/usr/local/sbin/daemond -args' | su -c daemon nobody". If your daemon is started via inetd, see the inetd.conf(5) man page for details on how you can specify the login class for a daemon. HTH, Guy Guy Helmer, Ph.D. Candidate, Iowa State University Dept. of Computer Science Research Assistant, Ames Laboratory --- ghelmer@scl.ameslab.gov Research Assistant, Dept. of Computer Science --- ghelmer@cs.iastate.edu http://www.cs.iastate.edu/~ghelmer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message