altlinux 10.4 рабочая станция
# apt-get install apache2
# a2enmod userdir
# systemctl enable --now httpd2
# systemctl start httpd2
В браузере вводим http://localhost, видим ‘It works!’ Создал юзера test с HOME=/home/test, поддиректорию public_html, и в ней простейшую страничку index.html. В браузере вводим http://localhost/~test или http://localhost/~test/index.html, получаем ‘Доступ запрещен’ и в /var/log/httpd2/error_log:
[Fri Feb 13 18:14:02.713011 2026] [core:error] [pid 4543:tid 4553] (13)Permission denied: [client 127.0.0.1:52878] AH00035: access to /~test/ denied (filesystem path '/home/test') because search permissions are missing on a component of the path
Вот права на директории и файл:
drwxr-xr-x 4 root root 4096 фев 13 17:48 /home
drwxr-xr-x 9 test test 4096 фев 13 17:51 /home/test
drwxr-xr-x 2 test test 4096 фев 13 18:33 /home/test/public_html
-rw-r--r-- 1 test test 198 фев 13 17:57 /home/test/public_html/index.html
И где тут ‘search permissions are missing on a component of the path’?
Перемещено hobbit из general
