Skip to main content
Tweeted twitter.com/StackUnix/status/723162609105670144
edited tags
Link
Petr Skocik
  • 29.6k
  • 18
  • 90
  • 154
added 4 characters in body
Source Link
Anthon
  • 81.4k
  • 42
  • 174
  • 228

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 NOTnot match.

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.

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.

Source Link
Petr Skocik
  • 29.6k
  • 18
  • 90
  • 154

Anonymous tarballs

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.