Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: Biswashost on January 30, 2025, 10:59:03 PM

Title: Wrong permission for folders or files
Post by: Biswashost on January 30, 2025, 10:59:03 PM
Hello, recently I notice wrong folders or files permissions with latest CWP V: 0.9.8.1190, Before I was not notice this with any others version. If I upload & extract any zip files to cwp user panel, then all folder permission become 777 & all files permission become 666. And each time I need to fix it by click "Fix Permissions" button from CWP User panel. Anyone facing this issue except me? Is it any bug or any problem with my setup?
Title: Re: Wrong permission for folders or files
Post by: cyberspace on January 31, 2025, 11:43:52 AM
How do you upload and extra the .zip files ? Can you please shed light on this ?
Title: Re: Wrong permission for folders or files
Post by: Biswashost on January 31, 2025, 09:41:12 PM
I simply using CWP user panel "file manager" to upload & extract any zip files & got that issue.
Title: Re: Wrong permission for folders or files
Post by: cyberspace on January 31, 2025, 10:43:31 PM
Don't see any problems. The same CWP version:
Code: [Select]
# /scripts/cwp_version
0.9.8.1190

Logged into the user level panel, uploaded a .zip file then extracted all files. Access permissions look good:

Files - 644
Folders - 755
Owner and group are correct.

In my opinion the access permissions are preserved when you extract the files from any archive. So extract the files from the same archive using GUI (FileManager) and unzip in shell then compare access permissions.