AdguardTeam / AdguardTeam/AdGuardHome

Permission denied when first run AdGuard Home without superuser

Open
#7,170 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
36.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

### Prerequisites

- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a) 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](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a)

- [X] I have set up AdGuard Home correctly and [configured clients to use it](https://github.com/AdguardTeam/AdGuardHome/wiki/Clients). (Use the [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a) for help with installing and configuring clients.)

### Platform (OS and CPU architecture)

FreeBSD, AMD64 (aka x86_64)

### Installation

GitHub releases or script from README

### Setup

On one machine

### AdGuard Home version

v0.107.52

### Action

Config file:
```
......
dns:
port: 5353
......
```

### Expected result

Succeed to run

### Actual result

```
2024/08/06 05:28:10 [info] AdGuard Home, version v0.107.52
2024/08/06 05:28:10 [info] service: control action: run
2024/08/06 05:28:10.712366 [info] AdGuard Home, version v0.107.52
2024/08/06 05:28:10.712387 [info] AdGuard Home is running as a service
2024/08/06 05:28:10.713052 [info] tls: using default ciphers
2024/08/06 05:28:10.713364 [fatal] initializing hosts container: hosts container: adding path: os watcher: permission denied
```

### Additional information and/or screenshots

Hello!
I do not have root privileges and need to initialize or directly start adguardhome as a non superuser
But I encountered a problem on freebsd, which prompted me with `hosts container: adding path: os viewer: permission denied`
I hope to receive a solution, thank you very much!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.