16 lines
781 B
Plaintext
16 lines
781 B
Plaintext
# Allow www-data to restart mhvtl service without password
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl restart mhvtl
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl start mhvtl
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl stop mhvtl
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl status mhvtl
|
|
www-data ALL=(ALL) NOPASSWD: /bin/rm -rf /opt/mhvtl/*
|
|
www-data ALL=(ALL) NOPASSWD: /usr/sbin/tgtadm
|
|
|
|
# Allow apache to restart mhvtl service without password (for RPM-based systems)
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl restart mhvtl
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl start mhvtl
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl stop mhvtl
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl status mhvtl
|
|
apache ALL=(ALL) NOPASSWD: /bin/rm -rf /opt/mhvtl/*
|
|
apache ALL=(ALL) NOPASSWD: /usr/sbin/tgtadm
|