LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   geting problem in extracting tar files (https://www.linuxquestions.org/questions/linux-enterprise-47/geting-problem-in-extracting-tar-files-368195/)

p_garg 09-29-2005 01:43 PM

geting problem in extracting tar files
 
halo friends,

when i am extracting tar.gz files with command tar xvzf, i am getting a message in every file, cannot change file ownership to uid uid no., cannot change file ownership to gid gidno., & one more thing is showing in that, file ownership of this tar file is 0755, when i am trying to change file ownership with chmod to 0777, it is not permiting me to do this. i think problem is with file permissions. this problem is not with a single package, a lot of package i am trying to extract, all having same problem. neither its a problem of linux vesion, bcaz 1st i am getting this problem in version 4, then i installed version 3, but same problem i get there also. plz tell me what to do.

parveen

kilgoretrout 09-29-2005 02:53 PM

Tar preserves the file ownership/permissions from the original source of every file in the tar archive. When you extract a tar archive, tar tries to recreate those ownerships/permissions. The message you are getting indicates that tar cannot recreate those file ownerships/permissions in the environment where you are doing the extracting. There could be a lot of reasons for this. Try extracting as root and then changing the permissions/ownership on the extracted files.


All times are GMT -5. The time now is 05:15 PM.