Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit e73c511

Browse files
slrzpaulfantom
authored andcommitted
make node_exporter executable file root-owned (#89)
The node_exporter shouldn't be able to write to its own executable file. Make it owned by root instead.
1 parent abbee1c commit e73c511

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
copy:
6060
src: "/tmp/node_exporter-{{ node_exporter_version }}.linux-{{ go_arch }}/node_exporter"
6161
dest: "/usr/local/bin/node_exporter"
62-
mode: 0750
63-
owner: "{{ node_exporter_system_user }}"
64-
group: "{{ node_exporter_system_group }}"
62+
mode: 0755
63+
owner: root
64+
group: root
6565
notify: restart node_exporter
6666
when: not ansible_check_mode

0 commit comments

Comments
 (0)