Re: UID GID Problems.....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> 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.....

Right, that's the uid and gid of whoever tar'd the files up, which clearly
seems to be the same, and since you don't have a user with that uid and
gid, it just uses the numerical value that it came with.


>
> On Tue, Jan 19, 2010 at 8:44 AM, Brian Mathis
> <brian.mathis@xxxxxxxxx>wrote:
>
>> On Tue, Jan 19, 2010 at 8:43 AM, Tom Bishop <bishoptf@xxxxxxxxx> wrote:
>> > Hoping someone can help me fix something that I apparently messed up,
>> i
>> have
>> > the issue that when I untar a file as root the uid and gid that get
>> set
>> are
>> > not roots'.  I had change a user uid and gid to 1000 via usermo -u
>> etc....
>> > but somehow it appears to have effected the root user.  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.  Hope someone can point
>> me
>> in
>> > 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
>> root....Thanks
>> > 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@xxxxxxxxxx
>> http://lists.centos.org/mailman/listinfo/centos
>>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux