mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Run app from unprivileged user #4221
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#4221
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ammnt on GitHub (Feb 4, 2023).
Prerequisites
I have checked the Wiki and Discussions and found no answer
I have searched other issues and found no duplicates
I want to report a bug and not ask a question
Operating system type
Linux, Other (please mention the version in the description)
CPU architecture
AMD64
Installation
GitHub releases or script from README
Setup
On one machine
AdGuard Home version
0.107.23
Description
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
Linux dns.msftcnsi.com 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
I'm trying to run the app from unprivileged user. What I exactly do:
adguardwith system groupadguardrootuseradguarduser:chown -R adguard:adguard /opt/AdGuardHomeuserandgroupfields in the .yaml config file toadguard(also tried UID and GID after that)Still no success because:
[fatal] listen tcp 0.0.0.0:80: bind: permission deniedThe verbose log is attached. Anyone tried it before?
Thank you.
Best regards!
@ammnt commented on GitHub (Feb 4, 2023):
@ainar-g commented on GitHub (Feb 5, 2023):
Perhaps the Debian
setcapis different from the Ubuntu one, but doesn't-rremove capabilities? What I do is:@ammnt commented on GitHub (Feb 5, 2023):
@ainar-g, unfortunately I have the same result with these flags:

@ainar-g commented on GitHub (Feb 5, 2023):
Sorry, I'm not sure what it could be then. Other than if you run it as a service, systemd might interfere with that somehow (
systemctl daemon-reload?).@ammnt commented on GitHub (Feb 5, 2023):
@ainar-g, nope. Nothing changed☹️
@ainar-g commented on GitHub (Feb 5, 2023):
I'll move this to discussions then, if you don't mind, as I don't think that it's an AdGuard Home issue.