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

TheSidewinder

Active Member
Jul 18, 2009
41
0
56
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.
 

TheSidewinder

Active Member
Jul 18, 2009
41
0
56
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.