[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changes in the way tar(1) constructs directory permissions



On Sat, 08 Nov 2014, John Conover wrote:
> That's true, Don, but the issue is the ownership of the DIRECTORIES
> when installing, a directory TREE in a non root temporary directory.
> The file ownerships are, indeed, correct. The ownerships of the
> directories down to the files are always root/root.

% fakeroot bash -c 'mkdir -p foo/bar; chown 8:8 .; chown 9:9 foo; chown 10:10 foo/bar; ls -la foo; tar -zvvtf bar.tar.gz; tar -zcf bar.tar.gz foo; rmdir -p foo/bar; tar -zxf bar.tar.gz; ls -la foo; rmdir -p foo/bar;';
total 12
drwxr-xr-x 3 news news 4096 Nov  8 11:07 .
drwxr-xr-x 7 mail mail 4096 Nov  8 11:07 ..
drwxr-xr-x 2 uucp uucp 4096 Nov  8 11:07 bar
drwxr-xr-x news/root         0 2014-11-08 11:07 foo/
drwxr-xr-x uucp/root         0 2014-11-08 11:07 foo/bar/
total 12
drwxr-xr-x 3 news news 4096 Nov  8 11:07 .
drwxr-xr-x 7 mail mail 4096 Nov  8 11:07 ..
drwxr-xr-x 2 uucp uucp 4096 Nov  8 11:07 bar

It would be helpful if you provided a self-contained example like this
which showed the behavior you are seeing.

It would also be useful to see the output of env|grep -i TAR; the output
of tar --version; and the output of dpkg -l tar;.

-- 
Don Armstrong                      http://www.donarmstrong.com

LEADERSHIP -- A form of self-preservation exhibited by people with
autodestructive imaginations in order to ensure that when it comes to
the crunch it'll be someone else's bones which go crack and not their
own. 
 -- The HipCrime Vocab by Chad C. Mulligan 
    (John Brunner _Stand On Zanzibar_ p256-7)


Reply to: