Take the 2-minute tour ×

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

1 Answer 1

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

       extract files as yourself
share|improve this answer

Your Answer


