Initial upload to Gitea

This commit is contained in:
antonn committed 2026-11-30 16:32:37 +00:00
1 parent 78193254ad
commit 8478998cae
1485 files changed
+461025 -42348

No files matched your search

+9 -6
View File
@@ -1,10 +1,13 @@
# /etc/sudoers.d/adpanel-panel
# ADPanel runs as the unprivileged 'adpanel' user, but installer/database
# workflows require unattended root-level package/service operations.
# 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).
#
# This policy intentionally allows non-interactive sudo for adpanel so
# panel-managed setup jobs (phpMyAdmin, pgAdmin, MongoDB, etc.) do not fail
# with "sudo: a password is required".
# 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
adpanel ALL=(ALL) NOPASSWD: ALL
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