AdGuardHome
AdGuardHome copied to clipboard
Permission denied issue on snap install adguard-home
Prerequisites
-
[X] I have checked the Wiki and Discussions and found no answer
-
[X] I have searched other issues and found no duplicates
-
[X] I want to report a bug and not ask a question or ask for help
-
[X] 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
We cannot reproduce this on our Snapcraft installation. Please make sure that nothing else is blocking access, e.g. AppArmor.
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
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
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.
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.