Find the answer to your Linux question:
Results 1 to 3 of 3
we have set up cron jobs to back up other servers in our system to a new cloud server (the jobs are run as root). our testing has revealed that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    3

    unzip ownership changes


    we have set up cron jobs to back up other servers in our system to a new cloud server (the jobs are run as root). our testing has revealed that when we unzip the zip files from the other servers the ownerships and groups for the files etc when expanded have all been changed to root.
    the command for unzipping the files is :
    unzip -Xo /colsys2/ccs4rempart.zip "colsys1/*">>$PRLOG

    with /colsys2/ccs4rempart.zip being the zip file
    colsys1/* being the specific type of file we want expanding

    similar unzip commands are used elsewhere on our live servers and as the "X" implies the ownership /protection info is restored in these cases
    we have tried to find a reason why this would occur under RHEL6 as it does not appear to happen under previous releases
    would any of our experts know of a reason for this happening?
    Last edited by andycurran; 04-04-2013 at 03:28 PM.

  2. #2
    Just Joined!
    Join Date
    Sep 2008
    Location
    Earth
    Posts
    51
    Im not sure what flexibility you have but check out Info-ZIP Home Page

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    I would steer you towards tar'ing the files first to keep the ownership then zip this file and move it.
    The Ultimae Tar Commands

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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