- Web UI: - Added secure Authentication system (Login, 2 Roles: Admin/Viewer) - Added System Monitoring Dashboard (Health, Services, Power Mgmt) - Added User Management Interface (Create, Delete, Enable/Disable) - Added Device Mapping view in iSCSI tab (lsscsi output) - Backend: - Implemented secure session management (auth.php) - Added power management APIs (restart/shutdown appliance) - Added device mapping API - CLI: - Created global 'vtl' management tool - Added scripts for reliable startup (vtllibrary fix) - Installer: - Updated install.sh with new dependencies (tgt, sudoers, permissions) - Included all new components in build-installer.sh - Docs: - Consolidated documentation into docs/ folder
38 lines
2.0 KiB
Plaintext
38 lines
2.0 KiB
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/systemctl is-active mhvtl
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl is-enabled mhvtl
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl status apache2
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl is-active apache2
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl is-enabled apache2
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl status tgt
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl is-active tgt
|
|
www-data ALL=(ALL) NOPASSWD: /bin/systemctl is-enabled tgt
|
|
www-data ALL=(ALL) NOPASSWD: /bin/rm -rf /opt/mhvtl/*
|
|
www-data ALL=(ALL) NOPASSWD: /usr/sbin/tgtadm
|
|
www-data ALL=(ALL) NOPASSWD: /usr/bin/lsscsi
|
|
www-data ALL=(ALL) NOPASSWD: /tmp/restart-appliance.sh
|
|
www-data ALL=(ALL) NOPASSWD: /tmp/shutdown-appliance.sh
|
|
|
|
# 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/systemctl is-active mhvtl
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl is-enabled mhvtl
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl status httpd
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl is-active httpd
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl is-enabled httpd
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl status scsi-target-utils
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl is-active scsi-target-utils
|
|
apache ALL=(ALL) NOPASSWD: /bin/systemctl is-enabled scsi-target-utils
|
|
apache ALL=(ALL) NOPASSWD: /bin/rm -rf /opt/mhvtl/*
|
|
apache ALL=(ALL) NOPASSWD: /usr/sbin/tgtadm
|
|
apache ALL=(ALL) NOPASSWD: /usr/bin/lsscsi
|
|
apache ALL=(ALL) NOPASSWD: /tmp/restart-appliance.sh
|
|
apache ALL=(ALL) NOPASSWD: /tmp/shutdown-appliance.sh
|