> I've had files that had 666 user:group permissions/owner that I tar into a backup file, then untar, only to find that the file is now 664 with me:me ownership.
It was PEBKAC, not tar's fault (GNU tar, anyway). Tar does store the original
owner and permissions. But the ownership of the unpacked files -- do you
really expect your process to set ownership of the files to another user?
The permissions would also be restored to 666 if you ran the tar as root;
there are several options whose defaults depend on whether EUID is 0 or not.