Files
Kelx/adpanel-sudoers
2026-11-30 16:32:37 +00:00

14 lines
768 B
Plaintext

# /etc/sudoers.d/adpanel-panel
# ADPanel runs as the unprivileged 'adpanel' user. Privileged operations
# (database tool installs, web-server service management, MySQL/PostgreSQL
# administration) are executed exclusively through the root-owned runner at
# /usr/local/lib/adpanel/adpanel-priv, which enforces its own per-operation
# allowlists (see privileged/ in the panel source tree).
#
# SECURITY: do NOT widen this policy back to unrestricted sudo. A compromise
# of the panel process must never be equivalent to root on the panel host.
Defaults:adpanel !requiretty
Defaults:adpanel env_keep += "DEBIAN_FRONTEND MYSQL_PASSWORD PGADMIN_SETUP_EMAIL PGADMIN_SETUP_PASSWORD ADPANEL_DB_ADMIN_PASSWORD"
adpanel ALL=(root) NOPASSWD: /usr/local/lib/adpanel/adpanel-priv