From owner-freebsd-questions Fri Oct 26 14: 8:43 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 CCC7B37B405 for ; Fri, 26 Oct 2001 14:08:39 -0700 (PDT) Received: (from mph@localhost) by wopr.caltech.edu (8.11.6/8.9.3) id f9QL8cZ68453; Fri, 26 Oct 2001 14:08:38 -0700 (PDT) (envelope-from mph) Date: Fri, 26 Oct 2001 14:08:38 -0700 From: Matthew Hunt To: Michael Grant Cc: freebsd-questions@FreeBSD.ORG Subject: Re: running a program as nobody Message-ID: <20011026140838.B68198@wopr.caltech.edu> References: <200110262059.VAA21039@splat.grant.org> <20011026140635.A68198@wopr.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011026140635.A68198@wopr.caltech.edu>; from mph@astro.caltech.edu on Fri, Oct 26, 2001 at 02:06:36PM -0700 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 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 * 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