nagios_plugin3.py installed with incorrect permissions

Bug #1970360 reported by Xav Paice
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nagios Charm
Fix Released
Undecided
Unassigned

Bug Description

When installing, /usr/local/lib/nagios/plugins/nagios_plugin3.py is copied as this:

-rw-r----- 1 root root 2275 Apr 26 03:29 nagios_plugin3.py

When running plugins we see the following error:

Traceback (most recent call last):
  File "/usr/local/lib/nagios/plugins/check_ro_filesystem.py", line 11, in <module>
    from nagios_plugin3 import (
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 780, in get_code
  File "<frozen importlib._bootstrap_external>", line 832, in get_data
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/nagios/plugins/nagios_plugin3.py'

Related branches

Xav Paice (xavpaice)
Changed in charm-nagios:
milestone: none → 22.04
status: New → Fix Committed
Chi Wai CHAN (raychan96)
Changed in charm-nagios:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.