[CentOS] UID GID Problems.....

Tue Jan 19 15:31:20 UTC 2010
Kai Schaetzl <maillists at conactive.com>

Tom Bishop wrote on Tue, 19 Jan 2010 07:43:50 -0600:

> When I touch files
> as root the correct uid and gid are root, however when untaring an archive
> the directory and files are uid and gid =1000.

Untarring *which* files? The standard behavior of tar is to keep the 
permissions etc. of the original. So, if they were owned by user x when 
tarring they will get untarred for user x. If you want to change this have a 
look at the section " Handling of file attributes:" of "tar --help".


Get your web at Conactive Internet Services: http://www.conactive.com