Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2007 16:45:45 +0100
From:      "Vincent Bolinard" <vinzstyle@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Jailed mysqld doesn't work after a backup
Message-ID:  <bd4110c30702150745ya76b629kebf85cd6fcf9e317@mail.gmail.com>
In-Reply-To: <bd4110c30702150415p2c685456h64bf5797dcd6e5f1@mail.gmail.com>
References:  <bd4110c30702150141l65f129a1t8dceb6d65485581f@mail.gmail.com> <bd4110c30702150415p2c685456h64bf5797dcd6e5f1@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I tried to use truss inside the jail : I copied the truss binary and
ran ldd to copy the libraries needed by truss. I admit that I forgot
to mount a /proc filesystem in the jail (truss needs it).
But truss can't be executed (so /proc isn't a problem yet), the error
is the same :

jail: execv: /usr/bin/truss: Permission denied

Permissions are 555, owned by root:wheel. I also tried with 755.

What's wrong ??

I set up another jail with Apache, and it's working

Thanks.

2007/2/15, Vincent Bolinard <vinzstyle@gmail.com>:
> Hi,
>
> I've reinstalled MySQL in the jail to be sure, and it's still not working.
>
> I also forgot to tell that the previous jail ran under a 6.1 upgraded to 6.2.
> Now, I'm running a fresh 6.2-RELEASE.
>
> The error message is the same :
> jail: execv: /usr/local/libexec/mysqld: Permission denied
>
> Thank you for your help.
>
>
> 2007/2/15, Vincent Bolinard <vinzstyle@gmail.com>:
> > Hi,
> >
> > Yesterday, I backed up my MySQL jail with "tar jcpf" (and used tar
> > jxpvf to extract).
> > Now, when I try to run it as I used to (jail -U mysql /jail/mysqld/
> > mysqld.domaine.com 192.168.1.6 /usr/local/libexec/mysqld &), it fails
> > giving me a "Permission Denied" error.
> >
> > If I try to run it with "chroot -u mysql /jail/mysqld
> > /usr/local/libexec/mysqld &", it works !
> >
> > I don't understand.
> >
> > Does somebody have an idea ?
> >
> > Thank you.
> >
> > P.S.: I'm running FreeBSD 6.2-RELEASE and MySQL server 5.0.27.
> >
>



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