Menu

GnuWin32 tar directory permission problem ?

Help
2006-11-17
2012-07-26
  • Nobody/Anonymous

    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 ...

     
    • GnuWin

      GnuWin - 2006-11-24

      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.

       
MongoDB Logo MongoDB