FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Owner & Group extract as 101 101 instead of root system
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Owner & Group extract as 101 101 instead of root system [message #177037] Fri, 17 February 2012 15:00 Go to next message
gamer is currently offline  gamer
Messages: 1
Registered: February 2012
Karma: 0
Junior Member
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
Re: Owner & Group extract as 101 101 instead of root system [message #177038 is a reply to message #177037] Fri, 17 February 2012 17:13 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
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(at)attglobal(dot)net
==================
Re: Owner & Group extract as 101 101 instead of root system [message #177041 is a reply to message #177037] Fri, 17 February 2012 17:23 Go to previous messageGo to next message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma: 0
Senior Member
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
Re: Owner & Group extract as 101 101 instead of root system [message #177042 is a reply to message #177038] Fri, 17 February 2012 17:28 Go to previous messageGo to next message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
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.
Re: Owner & Group extract as 101 101 instead of root system [message #177043 is a reply to message #177041] Fri, 17 February 2012 18:05 Go to previous messageGo to next message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma: 0
Member
At Fri, 17 Feb 2012 18:23:07 +0100 "J.O. Aho" <user(at)example(dot)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(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
Re: Owner & Group extract as 101 101 instead of root system [message #177045 is a reply to message #177042] Fri, 17 February 2012 19:13 Go to previous message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma: 0
Member
At Fri, 17 Feb 2012 18:28:02 +0100 "M. Strobel" <sorry_no_mail_here(at)nowhere(dot)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(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: website management
Next Topic: e-mail Hyperlink Code
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 20:07:08 GMT 2024

Total time taken to generate the page: 0.06915 seconds