[CentOS] UID GID Problems.....
bishoptf at gmail.com
Tue Jan 19 14:53:52 UTC 2010
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.....
On Tue, Jan 19, 2010 at 8:44 AM, Brian Mathis <brian.mathis at gmail.com>wrote:
> On Tue, Jan 19, 2010 at 8:43 AM, Tom Bishop <bishoptf at gmail.com> wrote:
> > Hoping someone can help me fix something that I apparently messed up, i
> > the issue that when I untar a file as root the uid and gid that get set
> > not roots'. I had change a user uid and gid to 1000 via usermo -u
> > but somehow it appears to have effected the root user. When I touch
> > as root the correct uid and gid are root, however when untaring an
> > the directory and files are uid and gid =1000. Hope someone can point me
> > the right direction....oh yea, running centos 5.4, and when I run the
> > command id = uid=0, gid=0, etc,,,,all appear to be right for
> > in advance.
> When you untar as root, the UID/GID is always set to that of the user
> who created the tar file. Only if you untar as a normal user does it
> change the ownership to the user who untarred it.
> CentOS mailing list
> CentOS at centos.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CentOS