From owner-freebsd-questions Fri Oct 26 14:14: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from grant.org (grant.org [206.190.164.98]) by hub.freebsd.org (Postfix) with ESMTP id 2923637B406 for ; Fri, 26 Oct 2001 14:14:00 -0700 (PDT) Received: from splat.grant.org (mgrant@host213-122-156-75.btinternet.com [213.122.156.75]) by grant.org (8.11.6/8.11.6) with ESMTP id f9QLDwB14807; Fri, 26 Oct 2001 17:13:58 -0400 (EDT) (envelope-from mgrant@splat.grant.org) Received: (from mgrant@localhost) by splat.grant.org (8.9.3+Sun/8.9.1) id WAA21068; Fri, 26 Oct 2001 22:13:56 +0100 (BST) Date: Fri, 26 Oct 2001 22:13:56 +0100 (BST) Message-Id: <200110262113.WAA21068@splat.grant.org> From: Michael Grant To: David Kirchner Cc: Subject: Re: running a program as nobody 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 > The format would be: > > su nobody -c /path/to/command > > If you want it chroot'd I think you're safe doing: > > chroot /new/root su nobody -c /path/to/command/relative/to/new/root > > I believe you'd need "su" in your /new/root, too. Thanks, that appears to work, so the man page for su appears to be wrong: su [-] [-Kflm] [-c class] [login [args]] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message