From owner-freebsd-questions@FreeBSD.ORG Thu Feb 15 15:45:53 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 066CA16A400 for ; Thu, 15 Feb 2007 15:45:53 +0000 (UTC) (envelope-from vinzstyle@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id AA52A13C494 for ; Thu, 15 Feb 2007 15:45:49 +0000 (UTC) (envelope-from vinzstyle@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so187531ugh for ; Thu, 15 Feb 2007 07:45:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VOTrkP5gsrnOtvjbYF+WAIysUCk1MhgohAEYl+oCP8m3E0dZcBbDltasR68ZY3LqHjVy0JQFj1GEniSq/mU+YwAN4Twd1Z2gIfYeF9lQsMqAJG6WQ8+IqCqF4A3zkQ6yw7AqBQ13bX2Zp+f542swDmTiAe0JFVsncNGkq+c17fg= Received: by 10.78.138.6 with SMTP id l6mr447495hud.1171554345190; Thu, 15 Feb 2007 07:45:45 -0800 (PST) Received: by 10.78.139.5 with HTTP; Thu, 15 Feb 2007 07:45:45 -0800 (PST) Message-ID: Date: Thu, 15 Feb 2007 16:45:45 +0100 From: "Vincent Bolinard" To: freebsd-questions@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: Jailed mysqld doesn't work after a backup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2007 15:45:53 -0000 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 : > 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 : > > 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. > > >