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.....<br>
<br><div class="gmail_quote">On Tue, Jan 19, 2010 at 8:44 AM, Brian Mathis <span dir="ltr"><<a href="mailto:brian.mathis@gmail.com">brian.mathis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Tue, Jan 19, 2010 at 8:43 AM, Tom Bishop <<a href="mailto:bishoptf@gmail.com">bishoptf@gmail.com</a>> wrote:<br>
> Hoping someone can help me fix something that I apparently messed up, i have<br>
> the issue that when I untar a file as root the uid and gid that get set are<br>
> not roots'.  I had change a user uid and gid to 1000 via usermo -u etc....<br>
> but somehow it appears to have effected the root user.  When I touch files<br>
> as root the correct uid and gid are root, however when untaring an archive<br>
> the directory and files are uid and gid =1000.  Hope someone can point me in<br>
> the right direction....oh yea, running centos 5.4, and when I run the<br>
> command id = uid=0, gid=0, etc,,,,all appear to be right for root....Thanks<br>
> in advance.<br>
<br>
</div></div>When you untar as root, the UID/GID is always set to that of the user<br>
who created the tar file.  Only if you untar as a normal user does it<br>
change the ownership to the user who untarred it.<br>
<div><div></div><div class="h5">_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br>