tar doesn't create directories with correct ownership.

Deon George deon at wurley.net
Sat Jan 13 04:21:30 UTC 2001


Package: busybox
Version: 0.48
Severity: normal

I am finding that tar is not creating directories with the correct
ownership (but it is creating files with the correct ownership)...

Here's some output.

[root at quokka /tmp]# tar --help
BusyBox v0.48 (2001.01.13-02:35+0000) multi-call binary -- GPL2

Usage: tar -[cxtvO] [--exclude File] [-X File][-f tarFile] [FILE(s)] ...

[root at quokka /tmp]# tar tzvf quokka.pkg
drwxr-xr-x 0/0               0 2000-12-01 21:30:04 home/
drwxr-xr-x 0/500             0 2000-12-01 21:30:04 home/admin/
drwxr-xr-x 200/500           0 2000-12-01 21:30:04 home/admin/deon/
drwx------ 200/500           0 2001-01-13 11:52:04 home/admin/deon/.ssh/

-r-------- 200/500        1203 2000-10-11 22:54:52
home/admin/deon/.ssh/authorized_keys2
-r-------- 200/500         687 2000-10-24 11:36:03
home/admin/deon/.ssh/authoriz

[root at quokka /tmp]# tar xzf quokka.pkg

[root at quokka /tmp]# ls -al home/admin/deon/
drwxr-xr-x   3 0        0              96 Jan 13 15:09 .
drwxr-xr-x   3 0        0              96 Jan 13 15:09 ..
drwx------   2 0        0             128 Jan 13 15:10 .ssh
[root at quokka /tmp]# ls -al home/admin/deon/.ssh
drwx------   2 0        0             128 Jan 13 15:10 .
drwxr-xr-x   3 0        0              96 Jan 13 15:09 ..
-r--------   1 200      500           687 Oct 24 11:36 authorized_keys
-r--------   1 200      500          1203 Oct 11 22:54 authorized_keys2

As you can see, the directories in the quokka.pkg file (which is a tgz
file), the directories are owned 200:500, but when extracted, they are
owed by 0:0. (The files are correctly owned as 200:500)...

[root at quokka /tmp]# uname -a
Linux quokka 2.2.16-i586 #1 Wed Jan 10 20:16:43 EST 2001 i486 unknown


--
...deon
---
 _--_|\   | Deon George
/      \  | For a PGP key finger me!
\_.--.*/  |
      v   | This email coming to you from the 'burbs of Melbourne, Australia.




---------------------------------------
Received: (at 1091-done) by bugs.lineo.com; 13 Jan 2001 21:47:01 +0000


More information about the busybox mailing list