Re: how to extract tar archive with r-xr-xr-x perms on .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 01, 2006 at 04:22:47PM -0400, Chuck Anderson wrote:
> Please Cc: me on any replies.  Thanks.
> 
> I have a tar archive that someone managed to create with no-readable 
> directories in it, including '.'
> 
> dr-xr-xr-x user/group      0 2006-06-22 20:44 ./
                                                ^^

I suspect there's the problem. Tar "restores" ., changing its
permissions as it goes.

Someone didn't follow ancient and venerable Unix custom by always
tarring the top directory that contains all the stuff you
want. Something like

tar -cvf foo.tar foo

(where foo contains pos and ssl) would have prevented this.

I suspect someone did something with a glob in it, like this:

cd foo
tar -cvf foo.tar *

Try this: Manually create the top level directories in the
tarball. Then untar. That might get you the files and lower
directories.


-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

Attachment: pgpNmEXink63z.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux