You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-08-30 14:51:13

muench
Member
Registered: 2023-07-10
Posts: 8

Permissions on config directory

Good day to you all,

I have a question regarding permissions on the configuration directory (/etc/glpi).
The installation documentation says:

GLPI configuration will be stored in /etc/glpi, just copy the contents of the config directory to this place. GLPI requires read rights on this directory to work; and write rights during the installation process.

Installation worked for me. Now after the installation I set owner and group for /etc/glpi recursively to root, rwxr-xr-x.

Now in Setup->General->System I saw an exclamation mark stating

Write access to /var/lib/glpi/_cache has been validated. The directory could not be created in /etc/glpi/. Write access to /var/lib/glpi/_cron has been validated. Write access to /var/lib/glpi has been validated. Write access to /var/lib/glpi/_dumps has been validated. Write access to /var/lib/glpi/_graphs has been validated. Write access to /var/lib/glpi/_lock has been validated. Write access to /var/lib/glpi/_pictures has been validated. Write access to /var/lib/glpi/_plugins has been validated. Write access to /var/lib/glpi/_rss has been validated. Write access to /var/lib/glpi/_sessions has been validated. Write access to /var/lib/glpi/_tmp has been validated. Write access to /var/lib/glpi/_uploads has been validated.Write access to /var/lib/glpi/_cache has been validated.

Do I have to reset permissions to allow glpi (www-data) write access on /etc/glpi again? Is the documentation wrong or did I misunderstand anything?

Thank you.

Last edited by muench (2023-08-30 15:09:53)

Offline

#2 2023-08-31 01:01:39

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Permissions on config directory

muench wrote:

I set owner and group for /etc/glpi recursively to root, rwxr-xr-x

Why was the owner set to root instead of the web server user (www-data)?


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2023-08-31 15:57:54

muench
Member
Registered: 2023-07-10
Posts: 8

Re: Permissions on config directory

because the documentation says, only read access is required for glpi

Offline

#4 2023-08-31 20:29:33

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: Permissions on config directory

It should be fine to ignore.
There are a few cases where write access would be required, but I think only during updates. I think the requirements checker could skip checking write access on this folder.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#5 2023-09-01 08:17:03

muench
Member
Registered: 2023-07-10
Posts: 8

Re: Permissions on config directory

Alright, many thanks for your estimation. I think, I will leave it that way for now.

Offline

Board footer

Powered by FluxBB