From owner-freebsd-doc@FreeBSD.ORG Fri Mar 31 03:20:17 2006 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA93C16A425 for ; Fri, 31 Mar 2006 03:20:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13D9743D53 for ; Fri, 31 Mar 2006 03:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k2V3KG6k014225 for ; Fri, 31 Mar 2006 03:20:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k2V3KGKc014224; Fri, 31 Mar 2006 03:20:16 GMT (envelope-from gnats) Resent-Date: Fri, 31 Mar 2006 03:20:16 GMT Resent-Message-Id: <200603310320.k2V3KGKc014224@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Doug Hawkins Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2AD716A425 for ; Fri, 31 Mar 2006 03:18:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEA8E43D46 for ; Fri, 31 Mar 2006 03:18:26 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k2V3IQZB014149 for ; Fri, 31 Mar 2006 03:18:26 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k2V3IQqH014148; Fri, 31 Mar 2006 03:18:26 GMT (envelope-from nobody) Message-Id: <200603310318.k2V3IQqH014148@www.freebsd.org> Date: Fri, 31 Mar 2006 03:18:26 GMT From: Doug Hawkins To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: docs/95139: FAQ to move filesystem to new disk fails: incorrect permissions X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2006 03:20:17 -0000 >Number: 95139 >Category: docs >Synopsis: FAQ to move filesystem to new disk fails: incorrect permissions >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 31 03:20:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Doug Hawkins >Release: FreeBSD 6.0-RELEASE >Organization: N/A >Environment: FreeBSD soho.localhost.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Fri Mar 31 14:40:20 NZST 2006 doug@soho.localhost.net:/usr/src/sys/i386/compile/GBDEKRNL i386 NOTE: I was using GENERIC from the 6.0 ISO's when this problem occurred >Description: I needed to move my /var, and /usr partitions to a different slice, so I followed the directions on: dump 0af - /var | restore xf - but that did not properly restore the file permissions. I later used: dump 0f - /var | restore rf - note the 'r' option instead of the 'x' for restore. Even though the documentation states that 'restore x' will attempt to restore file permissions, it did not work for my system. This could be very frustrating for someone who doesn't notice until later that many system services do not run properly (e.g.: MySQL cannot run because it's /var/db/mysql directory is no longer accessible {700 root:wheel} instead of {755 mysql:mysql}). >How-To-Repeat: Follow directions in FAQ to create a newfs & copy a partition, then compare the permission, owner, group for destination files & directories. >Fix: use 'restore r' instead of 'restore x' >Release-Note: >Audit-Trail: >Unformatted: