Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2001 14:06:36 -0700
From:      Matthew Hunt <mph@astro.caltech.edu>
To:        Michael Grant <mg-fbsd2@grant.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: running a program as nobody
Message-ID:  <20011026140635.A68198@wopr.caltech.edu>
In-Reply-To: <200110262059.VAA21039@splat.grant.org>; from mg-fbsd2@grant.org on Fri, Oct 26, 2001 at 09:59:43PM %2B0100
References:  <200110262059.VAA21039@splat.grant.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <mph@astro.caltech.edu> * 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011026140635.A68198>