Problem extracting zipped tar file

I was extracting the zipped tar file with the command
gzip -dc Sample.tar.gz |tar xf -

The tar file contained many delimited files; but lately they changed the structure of the tar file with another folder. So now all the delimited files are inside a folder called "Folder1" and the folder is packaged with tar.

When I try to run the above command I get an error like below

tar: 0511-188 Cannot create Folder1\/sample1.del: The file access permissions do not allow the specified action.


Thanks...

Maybe it is restoring original id and permissions, so try it with 'u'.

Can you please specify exactly where should I use the 'u' option..

Thanks,

Sorry, I meant o, but options vary between versions

tar xof tarfile
1 Like

It didn't help I get the same error

Can you run t on it to see where it wants to drop files? Maybe it has an absolute path. Nice tar files are all relative paths. You might need to make a matching landing zone directory to support the problem entry.

Also try:

tar -b 512 -zxvf Sample.tar.gz

I found similar issues reported and the solution was to use GNU tar instead.