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

Jeff Vian jvian10 at charter.net
Wed Aug 2 15:43:46 UTC 2006


On Tue, 2006-08-01 at 23:05 -0400, Chuck Anderson wrote:
> On Tue, Aug 01, 2006 at 06:53:55PM -0600, Charles Curley wrote:
> > 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.
> 
> Thanks for the suggestions.  I managed to get this extracted using pax 
> instead of tar:
> 
> gzip -dc file.tar.gz | pax -r
> 
> I would have thought either of the GNU tar options --no-recursive or 
> --no-same-permissions would have worked, but I guess not. Seems to me 
> that GNU tar is b0rked either in design or implementation, because the 
> contents of the archive shouldn't affect the ability to extract it.
> 
Maybe they used pax to create it and from habit named it with a .tar
name.  I have caught myself using confusing names when switching between
tools like tar and pax.

The file command should help with identifying that problem if you need
to look at the structure to know what tool to use. 




More information about the fedora-list mailing list