how to make all the files in a tarball belong to root

this has only been tested on gnu tar…

  • create:

    tar zcf control.tar.gz --owner=root --group=root --numeric-owner control
  • verify:

    tar ztvf control.tar.gz
  • unpack as root:

    sudo tar zxpf control.tar.gz --same-owner