Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2001 22:13:56 +0100 (BST)
From:      Michael Grant <mg-fbsd2@grant.org>
To:        David Kirchner <davidk@accretivetg.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: running a program as nobody
Message-ID:  <200110262113.WAA21068@splat.grant.org>

next in thread | raw e-mail | index | archive | help
> 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




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