From owner-freebsd-jail@freebsd.org Sun Dec 11 15:22:50 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A1CCC72703 for ; Sun, 11 Dec 2016 15:22:50 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C4CA9A6 for ; Sun, 11 Dec 2016 15:22:49 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id E73AC2847F; Sun, 11 Dec 2016 16:22:47 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 484162847B; Sun, 11 Dec 2016 16:22:47 +0100 (CET) Subject: Re: Getting "Permission Denied" issues after migrating jails To: Kaya Saman , freebsd-jail@freebsd.org References: <584D6A13.9010502@quip.cz> <78892b93-0a7d-b84a-6599-ce094735c9eb@gmail.com> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <584D6F47.8010106@quip.cz> Date: Sun, 11 Dec 2016 16:22:47 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <78892b93-0a7d-b84a-6599-ce094735c9eb@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2016 15:22:50 -0000 rKaya Saman wrote on 2016/12/11 16:05: > Thanks a lot Miroslav :-) > > I found the issue eventually..... > > For some reason it turns out the /var directory got set to 700 > permissions after the rsync..... > > a simple chmod 755 /var fixed the issue, however, it looks like all 5 of > my jails had the same problem? rsync -avvcrt : you don't need to specify "r" and "t", they are included in "a" but you missed "H" for hardlinks (they are used for base and packages too) -a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) I don't know why your /var had 0700, maybe you have too restrictive umask for user under you were running rsync. Miroslav Lachman