Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2001 14:08:38 -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:  <20011026140838.B68198@wopr.caltech.edu>
In-Reply-To: <20011026140635.A68198@wopr.caltech.edu>; from mph@astro.caltech.edu on Fri, Oct 26, 2001 at 02:06:36PM -0700
References:  <200110262059.VAA21039@splat.grant.org> <20011026140635.A68198@wopr.caltech.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 26, 2001 at 02:06:36PM -0700, Matthew Hunt wrote:

> su nobody -c /usr/local/bin/food

As someone else pointed out, there's the problem of nobody's shell
being /nonexistant.  You can get around that with -m:

su -m nobody -c /usr/local/bin/food

(tested here with "id" in place of "/usr/local/bin/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?20011026140838.B68198>