Author Topic: Fix Account Permissions problem  (Read 1914 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Fix Account Permissions problem
« on: September 07, 2020, 02:42:45 AM »
Hello

I would like to report an issue after using the "Fix Account Permissions".
The fix does the following : chmod files to 644, php files to 640 and folders to 755.

The problem is that someone using Joomla and nginx as webserver using that option will have problems with the website showing "403 Forbidden" error because index.php gets the 640 permission.
Is it possible to have one more option to fix permissions having only the options to chmod files to 644 and folders to 755?

I spend a lot of time to find out that 640 permission added for php files and hope that this post will save some time to people trying to investigate "403 Forbidden error".

Thank you in advance.
You need a reliable hosting company for your website or your eshop?
Need a cheap, reliable, fast and secure hosting?
You want fast support and action to every technical issue?
Freespirits is here for you :) - Don't look any further!

Offline
*****
Re: Fix Account Permissions problem
« Reply #1 on: September 07, 2020, 08:24:02 AM »
hello
this is same as
Code: [Select]
cd /home/user/public_html
find -xtype d | xargs   chmod 755
find -xtype f |xargs chmod 644

also check if you've filesystem lock enabled or the php files are immutable.

Offline
*
Re: Fix Account Permissions problem
« Reply #2 on: September 24, 2020, 11:22:28 PM »
Thank you for your answer but the problem remains.

To all new accounts added and joomla based sites if i use the "Fix Account Issues & Permissions" with or without using nginx it will  chmod files to 644, php files to 640 and folders to 755.

I will use the manual way you suggest but it would be great if that was a one click button option.
The problem can be easily reproduced as it appeared and occures to the latest versions.

 
You need a reliable hosting company for your website or your eshop?
Need a cheap, reliable, fast and secure hosting?
You want fast support and action to every technical issue?
Freespirits is here for you :) - Don't look any further!

Offline
*
Re: Fix Account Permissions problem
« Reply #3 on: October 12, 2020, 10:32:52 PM »
Hello

I just noticed that even when you use NGINX-PHPFPM using the "Fix Account Issues" will not chmod php files to 644 but to 640.
That will cause a lot of headache to many people.

Tested already with Joomla and wordpress websites and leads tp a "403 Forbidden" error.
The problem occurs to all the VPS i am using CWP7.

Please fix this issues the fastest possible.

Thank you in advance.
« Last Edit: October 12, 2020, 10:49:34 PM by Freespirits_GR_Host »
You need a reliable hosting company for your website or your eshop?
Need a cheap, reliable, fast and secure hosting?
You want fast support and action to every technical issue?
Freespirits is here for you :) - Don't look any further!

Offline
*
Re: Fix Account Permissions problem
« Reply #4 on: October 13, 2020, 04:14:51 AM »
Try switching off Mod_Security

Offline
*
Re: Fix Account Permissions problem
« Reply #5 on: October 14, 2020, 09:24:04 AM »
hello
this is same as
Code: [Select]
find -xtype f |xargs chmod 644
also check if you've filesystem lock enabled or the php files are immutable.

Quote
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option

Offline
*
Re: Fix Account Permissions problem
« Reply #6 on: October 14, 2020, 10:53:25 AM »
Hello and thank you everybody for your replies.  ;)

I have already checked everything suggested without luck.
The point is that somebody can reproduce the issue easily by using PHP-FPM to a domain.

If your website is based in joomla or wordpress you will see the "403 Forbidden" as all your php files will get 640 permissions.
Yes i know how to fix it manually but as this forum is to report bugs i just wanted to report that this issue has affect to latest versions of CWP7.
You need a reliable hosting company for your website or your eshop?
Need a cheap, reliable, fast and secure hosting?
You want fast support and action to every technical issue?
Freespirits is here for you :) - Don't look any further!

Offline
*
Re: Fix Account Permissions problem
« Reply #7 on: October 14, 2020, 04:41:00 PM »
forum is not for bug reporting it's used so someone else can suggest you a solution, for bug reporting you need to contact cwp developers

https://control-webpanel.com/contact
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: Fix Account Permissions problem
« Reply #8 on: October 14, 2020, 05:31:20 PM »
forum is not for bug reporting it's used so someone else can suggest you a solution, for bug reporting you need to contact cwp developers

https://control-webpanel.com/contact

I apologise.

I just considered that the section "CENTOS-WEBPANEL BUGS" was created so that users report possible bugs.
You need a reliable hosting company for your website or your eshop?
Need a cheap, reliable, fast and secure hosting?
You want fast support and action to every technical issue?
Freespirits is here for you :) - Don't look any further!