Results 1 to 8 of 8

Thread: Issue coming in tar,root disaapears and some other id comes while doing ls -l

  1. #1

    Default Issue coming in tar,root disaapears and some other id comes while doing ls -l

    Hi Sir,

    can you please help me on similar issue.
    I created a file from root with below permission:
    lrwxrwxrwx 1 root pdx 43 Sep 11 05:23 abc
    the did cmod like below:
    chmod (06551, abc);
    I used tar cf command to tar it:
    but while doing untar on diff machine having root machine,I am getting below ownership:
    -r-sr-s--x 1 2276 pdx 1443135 Sep 11 14:54 abc

    please help me why i am getting 2276 instead of root,kindly help me on the same.
    Thanks-
    Akshay

  2. #2

    Default Re: Issue coming in tar,root disaapears and some other id comes while doing ls -l

    Please give me your inputs,wat option i should use while doing zip so that on other root machine,i will get userid as root not 2276.

    thanks in advance-
    Akshay

  3. #3

    Default Re: Issue coming in tar,root disaapears and some other id comes while doing ls -l

    Use the options --preserve and --same-owner while extracting.

  4. #4

    Default Re: Issue coming in tar,root disaapears and some other id comes while doing ls -l

    is there any option which I can use while zipping so that while extracting i can use normal command for root as well as not root.

    Thanks in advance-
    Akshay

  5. #5

    Default Re: Issue coming in tar,root disaapears and some other id comes while doing ls -l

    How about
    Code:
    $ man tar
    ?

  6. #6

    Default Re: Issue coming in tar,root disaapears and some other id comes while doing ls -l

    did some possible options but no luck

  7. #7

    Default Re: Issue coming in tar,root disaapears and some other id comes whiledoing ls -l

    akshay52144 wrote:
    > Hi Sir,
    >
    > can you please help me on similar issue.
    > I created a file from root with below permission:
    > lrwxrwxrwx 1 root pdx 43 Sep 11 05:23 abc
    > the did cmod like below:
    > chmod (06551, abc);
    > I used tar cf command to tar it:
    > but while doing untar on diff machine having root machine,I am getting
    > below ownership:
    > -r-sr-s--x 1 2276 pdx 1443135 Sep 11 14:54 abc
    >
    > please help me why i am getting 2276 instead of root,kindly help me on
    > the same.
    > Thanks-
    > Akshay


    Again, you are using a symbolic link and its properties will not be
    reflected when tar copies it. Read up about symbolic links and about tar.

  8. #8

    Default Re: Issue coming in tar,root disaapears and some other id comes whiledoing ls -l

    Hi,

    Issue solve while using -o option while extraction.
    Thanks-
    Akshay

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •