Erno Kuusela wrote: > it would be useful if the chroot program could do a setuid() after > doing the chroot(). that would simplify setup of chroot jails > in many cases. > > eg, if i wanted to run irc in a chroot jail, i could do > cp /usr/bin/irc ~fred/irc/bin/ircII # assume it's statically linked > chroot -u fred ~fred/irc /bin/ircII
I realize this is very old but for the archive I wanted to mention that 'su' may also be used to good effect with chroot. Using the provided example: # chroot ~fred/irc su fred -c /bin/ircII Also the dchroot and schroot programs are good alternatives too. Bob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

