The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Extracting ZIP files in cPanel - permissions wrong, changed behavior.

Discussion in 'General Discussion' started by TheSidewinder, Feb 21, 2012.

  1. TheSidewinder

    TheSidewinder Active Member

    Joined:
    Jul 18, 2009
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    On my dedi server running WHM/cPanel, until a few days ago, extracting a ZIP file with the cPanel File Manager's "Extract" icon would expand the archive with all directories set to 0755 and all files to 0644. It's been this way for at least two years.

    That behavior changed within the last few days, and now they're being extracted with dirs at 0775 and files at 0664.

    Problem being, I use suphp. So, any file set to 0664, or any file in a directory set to 0775 will throw a 500 error.

    Fixable by a couple of recursive chmod commands, but annoying.

    Is that extraction method specific to cPanel? Is an underlying program the cause?

    Any suggestions to get that working properly again?

    Thanks in advance.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Are you extracting the exact same file, or did you only notice this upon extracting a different file than before?

    The permissions on the files that are extracted from a zip file are "inherited." For example, if the permissions on a file were 0666 when it was compressed, it will retain those permissions when it's extracted. This is the behavior of the zip/unzip package itself, as opposed to any cPanel-specific functions.

    Thank you.
     
  3. TheSidewinder

    TheSidewinder Active Member

    Joined:
    Jul 18, 2009
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Hello.

    Yes, this is also happening on some existing zip files that have been on the server for quite some time. And I know for certain that they extracted correctly before this started happening. But, they now display the same behavior; dirs 775, files 664.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    652
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This behavior likely stems from the zip/unzip packages themselves, as opposed to any issue with cPanel. That being said, feel free to submit a ticket and we can take a closer look for you:

    Submit A Ticket

    Thank you.
     
Loading...

Share This Page