Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 down vote accepted
       try extracting files with the same ownership

       extract files as yourself
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .