Hi all, I create an archive with "tar cvf toto.tar ." but all the included
directories have no execution permission (no x for u,g, or o).
This is unimportant if the archive is extracted on Windows, but when I
extract it under Linux it is very annoying since to be able to access
the extracted dirs, I need to manually change the permissions (chmod -R +x
or using find).
Is this the expected behavior ?! Is there a way to override it ?
Side question :
if I extract the same archive under Solaris, tar shows a warning
saying it has forced the extracted directories to have +x.
Why I don't get the same behavior under Linux ? is there a magical
setting somewhere ? The umask is the same on both systems ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This will be fixed in a next release of tar. For most purposes, bsdtar is a good alternative, since it can also untar tar.gz and tar.bz2 archives in one pass. Also, it does not suffer from this directory permission problem. So, probably, it is best to change to bsdtar.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all, I create an archive with "tar cvf toto.tar ." but all the included
directories have no execution permission (no x for u,g, or o).
This is unimportant if the archive is extracted on Windows, but when I
extract it under Linux it is very annoying since to be able to access
the extracted dirs, I need to manually change the permissions (chmod -R +x
or using find).
Is this the expected behavior ?! Is there a way to override it ?
Side question :
if I extract the same archive under Solaris, tar shows a warning
saying it has forced the extracted directories to have +x.
Why I don't get the same behavior under Linux ? is there a magical
setting somewhere ? The umask is the same on both systems ...
This will be fixed in a next release of tar. For most purposes, bsdtar is a good alternative, since it can also untar tar.gz and tar.bz2 archives in one pass. Also, it does not suffer from this directory permission problem. So, probably, it is best to change to bsdtar.