Permissions issue with Network-Weathermap plugin

I’m not sure what happened to cause this change in behavior, but I’m having a permissions issue with my maps (.conf files) in the Network-Weathermap plugin. To make the maps editable, I have to change the owner of the files to www-data. If they belong to the librenms user (librenms), then I can not edit them. However, if they belong to www-data, then I can’t view them. In the screen clips below, the only map I can edit is “test.conf” but I can not display it outside of the Network-Weathermap editor. To be able to edit a map, I first have to change the owner to www-data, make the changes, then change the owner back to librenms to view the map outside the editor.

image

image

What can I do so that A) maps newly created by the editor belong to the owner librenms, and 2) those maps can be edited in the editor?

1 Like

Try chmod g+w

So that allows the files created in the editor to be seen outside the editor. But I’ll still have to go back and manually do that for each new map I create.

I don’t really understand why the behavior changed. And, if possible, I’d like to change it back so I don’t have to manually do this for every new map file.

1 Like

Try setting an acl:

setfacl -d -m g::rwx /opt/librenms/html/plugins/Weathermap/configs
1 Like

Thanks, that seems to have worked!