How risky is to change the ownership of /run/lock/lvm from root to Debian-snmp? I needed this for reading the total datastore volume via SNMP.
Though I ended up adding Debian-snmp user to /run/lock/lvm group:
Though I ended up adding Debian-snmp user to /run/lock/lvm group:
Bash:
#!/bin/bash
# add Debian-snmp user to read, write, and execute in the directory /run/lock/lvm
chgrp Debian-snmp /run/lock/lvm
chmod g+rwx /run/lock/lvm
Last edited: