[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chroot and su



On Thu, Sep 20, 2001 at 10:03:43PM +0300, Tzafrir Cohen wrote:
> Hi
> 
> I want to run a certain daemon in a chroot jail. Since that daemon has no
> support for running in a chroot, I'll have to run it as a user. This means
> that I have to add some sort of 'su' into the chroot jail.

su user -c 'chroot /jail otherprogram'

Don't see why you would need 'su' inside the jail. AFAIK all you need
to do is create fake lib, bin, usr/bin directories inside the jail and
hardlink the files from the real directories into it (too bad you can't
hardlink directories). That's about it. No disk space wasted.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il