From owner-freebsd-questions@FreeBSD.ORG Sat Aug 27 14:27:07 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3450A16A41F for ; Sat, 27 Aug 2005 14:27:07 +0000 (GMT) (envelope-from paulh@bdug.org.au) Received: from mail.bdug.org.au (mail.bdug.org.au [202.72.170.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FCD143D49 for ; Sat, 27 Aug 2005 14:27:06 +0000 (GMT) (envelope-from paulh@bdug.org.au) Received: from localhost (localhost.bdug.org.au [127.0.0.1]) by mail.bdug.org.au (Postfix) with ESMTP id EE1BEDD8 for ; Sat, 27 Aug 2005 22:27:15 +0800 (WST) Received: from mail.bdug.org.au ([127.0.0.1]) by localhost (ant.bdug.org.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28316-01 for ; Sat, 27 Aug 2005 22:27:12 +0800 (WST) Received: from w2k2 (unknown [192.168.0.102]) by mail.bdug.org.au (Postfix) with ESMTP id 44082DD6 for ; Sat, 27 Aug 2005 22:27:12 +0800 (WST) From: "Paul Hamilton" To: Date: Sat, 27 Aug 2005 22:28:18 +0800 Message-ID: <01b001c5ab13$91578ed0$6600a8c0@w2k2> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Virus-Scanned: amavisd-new at bdug.org.au Subject: Directory permissions issue taring directories onto a Compact Flash card 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: Sat, 27 Aug 2005 14:27:07 -0000 Hi, I have done a minimal FreeBSD 5.4 install onto single partition ad0s1a = I then mounted my 512MB Compact Flash ide drive on ad2s1. When I run this command su'ed as root:=20 tar --one-file-system cf - -C / . | tar xpvf - -C /mnt I find that all the directories end up with permissions of: drwx------ Even running: dump 0af - / | restore xf - gives the same result. If I manually create a directory on the CF /mnt I get the correct permissions! Files copied over via tar and dump are ok. I have used = tar to copy HD contents to larger HD,s before with out a problem. Umask is set to 22, and this is being done in a tcsh shell.=20 Any clue on whats going on? Cheers, Paul Hamilton.