Don't Preserver Owner
I'd like to compress some files for http distribution, but found that .tar.gz keeps the user name and user ID and there doesn't seem to be any way to not do that? (There is a --numeric-owner option for tar which seems to ignore the user name, but still keeps the user ID.)
Doesn't that mean that .tar.gz is a poor choice for file distribution as my system probably is the only one with my user ID and my user name? Is .7z a better format for file distribution, or do you have any other recommendation?
Generally .tar.gz is a usable file distribution format. GNU tar allows you to replace owner, group and permissions with other values when adding files to the archive.
tar -c -f archive.tar --owner=0 --group=0 .
Ref: tar without preserving user - Unix & Linux Stack Exchange - https://unix.stackexchange.com/questions/285237/tar-without-preserving-user