Get your free beta license ↗
Websites · Apache

A site returns 403 Forbidden after its home permissions change

Last updated 30 Nov 2026
Summary

Every page of a customer's sites returns 403 Forbidden after a chmod or chown on the customer's home. The change removes Apache's access to the folders, and one command restores it.

Symptoms

Every page returns 403 Forbidden. The domain's error log, shown by urbestack-domain-log --name example.com --type error, contains this line.

Output
[Mon Nov 30 08:26:59.564544 2026] [core:error] [pid 2583:tid 2696] (13)Permission denied: [client 203.0.113.10:35372] AH00035: access to /index.html denied (filesystem path '/home/USER/files/web') because search permissions are missing on a component of the path

Cause

The customer owns /home/USER/files, and its group is the web server's group. Mode 0750 keeps other accounts out and lets Apache enter through that group.

A chmod 700 on the home removes group access. A chown -R that changes the home's group also removes Apache's access.

Resolution

  1. Preview the changes before applying them.

    urbestack-home-repair --name USER --modes --dry-run
  2. After a chmod 700 on the home, the preview lists a change from 0700 to 0750 for /home/USER/files. Apply the repair.

    urbestack-home-repair --name USER --modes
  3. The command restores the owners and modes UrbeStack sets for the home. It restores root as the owner of /home/USER and sets its mode to 0755. It sets /home/USER/files to 0750, the web folders to 0755, and the private folders to 0700.

  4. Load a page again. It returns 200.