Tar encodes my user name into the tarball. Can I force it to make a fully anonymous tarball?
--owner root
replaces only some instances of my user name. Adding USER=root
: USER=root tar c --owner root data
has no effect.
In short, I wish for:
echo hello world > data; tar c --owner root data | grep "$USER"
to not match.