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 2024-10-07 12:13:08

turricum
Member
Registered: 2023-10-06
Posts: 13

[solved} glpi-discovery as non-root user

Hi smile

im using GLPI and im very happy. But there is a situation and im not knowing if its an older problem or not.

Its possible that the glpi-discover command just running with root?

[glpireporting@cacti ~]$ glpi-netdiscovery --first 10.0.0.1 --last 10.0.0.254
Can't write in /var/lib/glpi-agent/__LOCAL__ at /usr/share/glpi-agent/lib/GLPI/Agent/Storage.pm line 35.

the user glpireporting has write access to his own homedirectory.

If I need root for that, what is the reason?

Regards,
Manuel

Last edited by turricum (2024-10-08 10:19:39)

Offline

#2 2024-10-08 10:18:37

turricum
Member
Registered: 2023-10-06
Posts: 13

Re: [solved} glpi-discovery as non-root user

I dont know if this error comes from an update or not. But the solution was:

chmod g+rw /var/lib/glpi-agent/__LOCAL__/
chgrp my_normal_user /var/lib/glpi-agent/__LOCAL__/

and then it works like expected.

Offline

Board footer

Powered by FluxBB