Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2002 05:26:29 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Walter Hop <walter@binity.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: chroot+su idea
Message-ID:  <3C6D0C85.4D058346@mindspring.com>
References:  <18416867424.20020215140249@binity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Walter Hop wrote:
> Is there a tool available that combines chroot and su? If not, a
> chroot capability would be an interesting feature to add to the
> FreeBSD ``su'' command in my opinion, e.g.
> 
> % su -l ircd -r /usr/local/ircd -c 'bin/ircd'
> 
> Any ideas or suggestions would be welcomed. If I have overlooked a
> current solution for the chroot+su chicken/egg problem, I'd love to
> submit a patch for su to add such a chroot parameter, but I could
> imagine that the committer team is more conservative than I am. :)

Don't use "su".  Use the systemcalls "setgig" and "setuid" to drop
priviledges in the program itself.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C6D0C85.4D058346>