[Klug-general] Apache, PHP and MySQL security (Fairly long post!)

MacGyveR macgyver at thedumbterminal.co.uk
Sat Jan 6 22:14:15 GMT 2007


>
>  chrootuid /chroot/mysql \
> mysql /chroot/mysql/usr/local/mysql/libexec/mysqld &
>
> I get the following in /var/log/syslog:
>
> /chroot/mysql/usr/local/mysql/libexec/mysqld: No such file or directory
>
> The file exists, the permissions are as follows:
>
> -rwxr-xr-x 1 root mysql 4989964 2007-01-05 22:42 mysqld
>
> but I can't get it to work.  Can anyone help me with this?

when you chroot to "/chroot/mysql" this become "/"

your command should be :

chrootuid /chroot/mysql mysql /usr/local/mysql/libexec/mysqld &


-- 
--------------------------------
http://www.thedumbterminal.co.uk



More information about the Kent mailing list