From owner-freebsd-questions Fri Oct 26 14: 6:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.102.114]) by hub.freebsd.org (Postfix) with ESMTP id DB53037B407 for ; Fri, 26 Oct 2001 14:06:45 -0700 (PDT) Received: (from mph@localhost) by wopr.caltech.edu (8.11.6/8.9.3) id f9QL6aO68373; Fri, 26 Oct 2001 14:06:36 -0700 (PDT) (envelope-from mph) Date: Fri, 26 Oct 2001 14:06:36 -0700 From: Matthew Hunt To: Michael Grant Cc: freebsd-questions@FreeBSD.ORG Subject: Re: running a program as nobody Message-ID: <20011026140635.A68198@wopr.caltech.edu> References: <200110262059.VAA21039@splat.grant.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200110262059.VAA21039@splat.grant.org>; from mg-fbsd2@grant.org on Fri, Oct 26, 2001 at 09:59:43PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Oct 26, 2001 at 09:59:43PM +0100, Michael Grant wrote: > I want to run a particular daemon as userid nobody. I tried the > obvious thing of using su like this: > > su -c nobody nobody /usr/local/bin/food > > but no matter what I try, I cannot get something like this to work. Follow the example in "man su": # su man -c catman # Runs the command catman as user man. You will be asked for man's # password unless your real UID is 0. su nobody -c /usr/local/bin/food (mmm... food) -- Matthew Hunt * Clearly there are more things in the http://www.pobox.com/~mph/ * heavens than anyone anticipated. -enp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message