AdGuardHome runs fine alongside Proxmox 7.2 when it runs as root user. Including to work as DHCP server for my network.
However I would like to run AdGuardHome as a non-privileged user.
When I follow instructions to do so, running alongside Proxmox it can't bind ports to do DHCP stuff.
The steps I take were:
a) install AdGuardHome
b) changed group and owner of files to the non-privileged user I want to run it (admin, in this case)
c) altered /etc/systemd/system/AdGuardHome.service to:
When I try to check for DHCP servers running on my network AdGuardHome web interface throws this errors:
Running as root, everything runs without any error.
I opened a thread on AdGuardHome GitHub but at the moment they don´t know what can be, appears to be some configuration on Proxmox's Debian.
Any ideas?
However I would like to run AdGuardHome as a non-privileged user.
When I follow instructions to do so, running alongside Proxmox it can't bind ports to do DHCP stuff.
The steps I take were:
a) install AdGuardHome
Bash:
curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sudo sh -s -- -v
b) changed group and owner of files to the non-privileged user I want to run it (admin, in this case)
Bash:
sudo chown -R admin:admin /opt/AdGuardHome /var/log/AdGuardHome*
c) altered /etc/systemd/system/AdGuardHome.service to:
Code:
[Unit]
Description=AdGuard Home: Network-level blocker
ConditionFileIsExecutable=/opt/AdGuardHome/AdGuardHome
After=syslog.target network-online.target
[Service]
User=admin
Group=admin
StartLimitInterval=5
StartLimitBurst=10
ExecStartPre=+/sbin/setcap CAP_NET_BIND_SERVICE=+eip /opt/AdGuardHome/AdGuardHome
ExecStart=/opt/AdGuardHome/AdGuardHome "-s" "run"
WorkingDirectory=/opt/AdGuardHome
StandardOutput=file:/var/log/AdGuardHome.out
StandardError=file:/var/log/AdGuardHome.err
Restart=always
RestartSec=10
EnvironmentFile=-/etc/sysconfig/AdGuardHome
[Install]
WantedBy=multi-user.target
When I try to check for DHCP servers running on my network AdGuardHome web interface throws this errors:
Running as root, everything runs without any error.
I opened a thread on AdGuardHome GitHub but at the moment they don´t know what can be, appears to be some configuration on Proxmox's Debian.
Any ideas?