Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4854 > unrolled thread

Owner & Group extract as 101 101 instead of root system

Started bygamer <baydart99@gmail.com>
First post2012-02-17 07:00 -0800
Last post2012-02-17 12:05 -0600
Articles 6 — 5 participants

Back to article view | Back to comp.lang.php


Contents

  Owner & Group extract as 101 101 instead of root system gamer <baydart99@gmail.com> - 2012-02-17 07:00 -0800
    Re: Owner & Group extract as 101 101 instead of root system Jerry Stuckle <jstucklex@attglobal.net> - 2012-02-17 12:13 -0500
      Re: Owner & Group extract as 101 101 instead of root system "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-02-17 18:28 +0100
        Re: Owner & Group extract as 101 101 instead of root system Robert Heller <heller@deepsoft.com> - 2012-02-17 13:13 -0600
    Re: Owner & Group extract as 101 101 instead of root system "J.O. Aho" <user@example.net> - 2012-02-17 18:23 +0100
      Re: Owner & Group extract as 101 101 instead of root system Robert Heller <heller@deepsoft.com> - 2012-02-17 12:05 -0600

#4854 — Owner & Group extract as 101 101 instead of root system

Fromgamer <baydart99@gmail.com>
Date2012-02-17 07:00 -0800
SubjectOwner & Group extract as 101 101 instead of root system
Message-ID<c2159892-e755-41b4-9d6b-2fef6ea1ef4c@l16g2000vbl.googlegroups.com>
Hi when I extract the perl on to my AIX box with the root account
their owner and group show up as 101 101. Any idea whey, would expect
root system?

How I exctract: gunzip -dc php-5.3.10.tar.gz | tar xvf –

Issuing ls -lt
drwxr-xr-x   18 101      101            2560 Feb 16 15:17 php-5.3.10

[toc] | [next] | [standalone]


#4855

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-02-17 12:13 -0500
Message-ID<jhm1s0$s0j$1@dont-email.me>
In reply to#4854
On 2/17/2012 10:00 AM, gamer wrote:
> Hi when I extract the perl on to my AIX box with the root account
> their owner and group show up as 101 101. Any idea whey, would expect
> root system?
>
> How I exctract: gunzip -dc php-5.3.10.tar.gz | tar xvf –
>
> Issuing ls -lt
> drwxr-xr-x   18 101      101            2560 Feb 16 15:17 php-5.3.10

Maybe because that's what the owner/group are in the file?

Try a Linux newsgroup for more information on how gunzip works.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#4859

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-02-17 18:28 +0100
Message-ID<9q7h12F4f0U1@mid.uni-berlin.de>
In reply to#4855
Am 17.02.2012 18:13, schrieb Jerry Stuckle:
> On 2/17/2012 10:00 AM, gamer wrote:
>> Hi when I extract the perl on to my AIX box with the root account
>> their owner and group show up as 101 101. Any idea whey, would expect
>> root system?
>>
>> How I exctract: gunzip -dc php-5.3.10.tar.gz | tar xvf –
>>
>> Issuing ls -lt
>> drwxr-xr-x   18 101      101            2560 Feb 16 15:17 php-5.3.10
> 
> Maybe because that's what the owner/group are in the file?
> 
> Try a Linux newsgroup for more information on how gunzip works.
> 

It is tar that does it, JS.

To the OP: tar is a very old unix utility, and it records the file mode bits, owner
and group information. That's why it is largely used, file mode bits are important.
When I extract a zip archive in linux I get wrong file modes. Use chown and chmod to
change that.

BTW: .tar.gz files can be extracted in one step: tar xzvf arhicve.tar.gz

/Str.

[toc] | [prev] | [next] | [standalone]


#4862

FromRobert Heller <heller@deepsoft.com>
Date2012-02-17 13:13 -0600
Message-ID<hpudnaiPnrdFO6PSnZ2dnUVZ_tudnZ2d@posted.localnet>
In reply to#4859
At Fri, 17 Feb 2012 18:28:02 +0100 "M. Strobel" <sorry_no_mail_here@nowhere.dee> wrote:

> 
> Am 17.02.2012 18:13, schrieb Jerry Stuckle:
> > On 2/17/2012 10:00 AM, gamer wrote:
> >> Hi when I extract the perl on to my AIX box with the root account
> >> their owner and group show up as 101 101. Any idea whey, would expect
> >> root system?
> >>
> >> How I exctract: gunzip -dc php-5.3.10.tar.gz | tar xvf =E2=80=93
> >>
> >> Issuing ls -lt
> >> drwxr-xr-x   18 101      101            2560 Feb 16 15:17 php-5.3.10
> >=20
> > Maybe because that's what the owner/group are in the file?
> >=20
> > Try a Linux newsgroup for more information on how gunzip works.
> >=20
> 
> It is tar that does it, JS.
> 
> To the OP: tar is a very old unix utility, and it records the file mode b=
> its, owner
> and group information. That's why it is largely used, file mode bits are =
> important.
> When I extract a zip archive in linux I get wrong file modes. Use chown a=
> nd chmod to
> change that.
> 
> BTW: .tar.gz files can be extracted in one step: tar xzvf arhicve.tar.gz

GNU Tar can do this. Not all other versions of tar can though.

> 
> /Str.
> 
>                                                                                                                         

-- 
Robert Heller             -- 978-544-6933 / heller@deepsoft.com
Deepwoods Software        -- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


                          

[toc] | [prev] | [next] | [standalone]


#4858

From"J.O. Aho" <user@example.net>
Date2012-02-17 18:23 +0100
Message-ID<9q7gnrFvgtU2@mid.individual.net>
In reply to#4854
gamer wrote:
> Hi when I extract the perl on to my AIX box with the root account
> their owner and group show up as 101 101. Any idea whey, would expect
> root system?

This is OT, comp.unix.aix could have been a better place to ask this question.


> How I exctract: gunzip -dc php-5.3.10.tar.gz | tar xvf –
>
> Issuing ls -lt
> drwxr-xr-x   18 101      101            2560 Feb 16 15:17 php-5.3.10


This is for the user who owned the files on the original system had UID 101 
and GID 101, there are no such user nor group in your machine and those you 
see the UID/GID as values.


-- 

   //Aho

[toc] | [prev] | [next] | [standalone]


#4860

FromRobert Heller <heller@deepsoft.com>
Date2012-02-17 12:05 -0600
Message-ID<gs-dnTk0r7p4C6PSnZ2dnUVZ_uednZ2d@posted.localnet>
In reply to#4858
At Fri, 17 Feb 2012 18:23:07 +0100 "J.O. Aho" <user@example.net> wrote:

> 
> gamer wrote:
> > Hi when I extract the perl on to my AIX box with the root account
> > their owner and group show up as 101 101. Any idea whey, would expect
> > root system?
> 
> This is OT, comp.unix.aix could have been a better place to ask this question.
> 
> 
> > How I exctract: gunzip -dc php-5.3.10.tar.gz | tar xvf –
> >
> > Issuing ls -lt
> > drwxr-xr-x   18 101      101            2560 Feb 16 15:17 php-5.3.10
> 
> 
> This is for the user who owned the files on the original system had UID 101 
> and GID 101, there are no such user nor group in your machine and those you 
> see the UID/GID as values.

If you are using GNU Tar, there are some options that control this:

       -o, --no-same-owner
              do not attempt to restore ownership when extracting; -o exhibits
              this behavior when extracting an archive

This will cause GNU Tar to ignore the stored ownership in the archive
and restore the files using the ownership of the process running tar
(root in your case).

Also:

       --owner USER
              change owner of extraced files to USER

This can be used to set the ownership of the extracted file to the
ownership you select.

(I don't know if AIX ships with GNU Tar or if it has its own version,
which may or may not have these or similar options.)


> 
> 

-- 
Robert Heller             -- 978-544-6933 / heller@deepsoft.com
Deepwoods Software        -- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


                                                              

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web