Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am creating a tar gzipp'ed archive on my local machine (as user1) using the following commands:

user1@devmachine:~/$ tar czpf dir.tar.gz thedirectory

on the server, I untar it (as user 2) using the command

user2@servermachine:~/$ tar xzpf dir.tar.gz

I find that the extracted files are owned by another user (say user3)

What is the logic that is used to determine file ownership if the owner of the extracted file is not a user on the target machine?

I am running Ubuntu 10.0.4 on both machines

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted
 --same-owner
       try extracting files with the same ownership

 --no-same-owner
       extract files as yourself
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.