Re: chrooting mysql
On Mon, Mar 05, 2001 at 08:50:40AM +0000, Stephen Walton wrote:
> Quick question regarding mysql. The command line option
> to chroot mysql doesn't appear to work under debian. All
> that happens is the daemon fails to start with a can't
> find file: getpwnam error message.
>
> Is the chroot command line option supported under Debian?
Currently you still have to build a little chroot environment to let
mysql run chroot'ed. Esp. /etc/passwd /etc/nsswitch.conf and /lib/libnss_compat
or so are required.
Also be aware that MySQL shows strange behaviour when accessing databases:
it complains if they are not in the chroot but uses the onces outside the
chroot. very strange. This is the reason I haven't chroot support in
my Debian MySQL packages.
> Stephen Walton
HTH,
bye,
-christian-
--
codito ergo sum - I code, therefore I am!
Reply to: