mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
Permission denied issue on snap install adguard-home #4833
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#4833
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 @nkqlee on GitHub (Oct 28, 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 or ask for help
I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Ubuntu 22.04.3 LTS arm64
Installation
GitHub releases or script from README
Setup
On one machine
AdGuard Home version
v0.107.40
Action
permission denied when applying path of privkey.pem
Expected result
config saved
Actual result
permission denied
Additional information and/or screenshots
1st pic showed that adguard can access /etc/let*/live to view the fullchain.pem without permission issue
2nd pic showed that when tried to paste the path of privkey.pem, then permission denied
@ainar-g commented on GitHub (Oct 31, 2023):
We cannot reproduce this on our Snapcraft installation. Please make sure that nothing else is blocking access, e.g. AppArmor.
@nkqlee commented on GitHub (Nov 1, 2023):
checked with dmesg that showed denied while access privatekey

but i cannot find any info that can get rid of denied by apparmor for snap adguard-home
@nkqlee commented on GitHub (Nov 1, 2023):
found a way to have a quick fix

changed from enforced mode to complain mode in apparmor, but should have a bettter solution for this
@ainar-g commented on GitHub (Nov 2, 2023):
Since it is AppArmor, you're probably better off consulting the Snapcraft Forum about this, as I'm not sure what we could do here and how to diagnose, what could be different about that particular file or directory.
@CDzungx commented on GitHub (Feb 8, 2024):
Same problem, tried to use aa-complain to put AGH to complain mode but it keeps changing back to enforce mode (which cause permission denied) after some time.