[CentOS] UID GID Problems.....

John Doe jdmls at yahoo.com
Tue Jan 19 15:34:35 UTC 2010


From: Tom Bishop <bishoptf at gmail.com>
>So I downloaded the tar file, wget.... running as root (su -).  Looking at the file permissions owner and group are root but when I untar the file the new directory and all of the files have the UID and GID set to 1000, which was another user and not the one that I logged in with.....

Which is the normal behavior...
If you tar /etc, you want to preserve file ownership...
If you untar etc.tar and all files would become owned by root, it would break many things...
If you need, look at -o or --owner tar options (man tar will help)...

JD


      


More information about the CentOS mailing list