Forums

Resolved
0 votes
CLEAROS TEAM please take notice. The problem returned this morning. I check the permissions on directory /var/www/html and found they had been returned to drwxrwx---. Again I could not access the web page being served. Again I reset the permissions to drwxrwxr-x and now it is working again. Something last night changed the permissions on this directory.

I have a very simple web server set up on ClearOS. It is a simple HTTP file and uses only the default ClearOS settings. It has worked well for several years through several versions of ClarkConnect and ClearOS. This morning we could not access the web page and started getting the following error message:

403 Forbidden -- You don't have permission to access / on this server.

The web server is set for "LAN Only" access by the "AllUsers" group. There are no users or groups set up on the server beyond the factory defaults.

I noticed several automatic updates were installed on the server last night. Could this be part of the problem?

From the httpd error log: [Thu May 19 08:41:19.870390 2016] [core:crit] [pid 23506] (13)Permission denied: [client 192.168.0.19:54117] AH00529: /var/www/html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/' is executable.
Wednesday, May 18 2016, 03:26 PM
Share this post:
Responses (3)
  • Accepted Answer

    Wednesday, May 18 2016, 04:36 PM - #Permalink
    Resolved
    0 votes
    The file permissions for the directory /var/www/html were drwxrwx---

    The "all other" users were unable to access the directory or files in it.

    From the directory /var/www I ran chmod -R 775 html This corrected the problem.

    Now my question to the ClearOS team, what changed the access and permission to this directory last night?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 24 2016, 02:56 PM - #Permalink
    Resolved
    0 votes
    Hi John,

    This script:

    /usr/clearos/apps/flexshare/deploy/set-file-permissions


    Is run daily from a cron job.

    If you don't want Flexshare second guessing the file and folder permissions you set, edit:

    /etc/clearos/flexshare.conf


    And set:

    FlexshareSecurityPermissions=off


    B
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 24 2016, 03:53 PM - #Permalink
    Resolved
    0 votes
    Ben, thanks. The mystery is why did this just start now? I've used the httpd server for many years. The permission problems started just a few days ago. Now that I know where the problem is happening I can do some digging....
    The reply is currently minimized Show
Your Reply