From owner-freebsd-questions@FreeBSD.ORG Thu Feb 15 12:15:55 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 68A5116A400 for ; Thu, 15 Feb 2007 12:15:55 +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 B6FC013C441 for ; Thu, 15 Feb 2007 12:15:54 +0000 (UTC) (envelope-from vinzstyle@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so127009ugh for ; Thu, 15 Feb 2007 04:15:53 -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=dBrpYs6O3EadgJfdmq5jLIHc0xv4ZlLiDfjipbrnVijnn7NS8J+DpXWgLPvjUKsOkvp35pWxrepiSu5P1otJd7j1PjzwPbRJmCCA/DdhCZSKtd4n91hVMfS4evDYtxXGvTThM3q2f8Pbl7YaYfFx2v6nHLnK9Z7U9hsLp44+xXU= Received: by 10.78.166.7 with SMTP id o7mr413171hue.1171541751478; Thu, 15 Feb 2007 04:15:51 -0800 (PST) Received: by 10.78.139.5 with HTTP; Thu, 15 Feb 2007 04:15:51 -0800 (PST) Message-ID: Date: Thu, 15 Feb 2007 13:15:51 +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 12:15:55 -0000 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. >