Re: Changes in the way tar(1) constructs directory permissions
Don Armstrong writes:
> On Sat, 08 Nov 2014, John Conover wrote:
> > There has been changes in the way a tar(1) restore to a temporary
> > directory constructs directory ownerships; as login theuser, in
> > ${HOME}:
>
> This looks like you're using tar --no-same-owner, possibly via an ENV
> variable or something else.
>
> % fakeroot bash -c 'touch foo; chown 9 foo; ls -l foo; tar -zcf bar.tar.gz foo; rm foo; tar -zxf bar.tar.gz; ls -l foo; rm foo';
> -rw-r--r-- 1 news root 0 Nov 8 09:43 foo
> -rw-r--r-- 1 news root 0 Nov 8 09:43 foo
>
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.
John
--
John Conover, conover@rahul.net, http://www.johncon.com/
Reply to: