tar has an extract option --same-owner, so that if you used tar with the compression program of your choice, you can keep the ownership the same.
when extracting
tar zxvpf filename.tar.gz --same-owner
edit: great. i didn't even realize that gzip and bzip2 kept ownership by default.
Last edited by whansard; 11-25-2004 at 09:03 PM.
|