Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2005 22:28:18 +0800
From:      "Paul Hamilton" <paulh@bdug.org.au>
To:        <freebsd-questions@freebsd.org>
Subject:   Directory permissions issue taring directories onto a Compact Flash card
Message-ID:  <01b001c5ab13$91578ed0$6600a8c0@w2k2>

next in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01b001c5ab13$91578ed0$6600a8c0>