Skip to content

Commit 058eed5

Browse files
committed
Add info how to add local user to pihole group
Signed-off-by: yubiuser <[email protected]>
1 parent 0510868 commit 058eed5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/main/post-install.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,20 @@ Pi-hole will not be used by the host automatically after installation. To have t
1818
```code
1919
static domain_name_servers=127.0.0.1
2020
```
21+
22+
## Adding your local user to the 'pihole' group
23+
24+
Since version 6 Pi-hole uses a new API for authentication. All CLI commands use this API instead of e.g. direct database manipulation. If a password is set for API access, the CLI commands also need to authenticate. To avoid entering the password everytime on CLI, Pi-hole allows users which are members of the 'pihole' group to authenicate without manually entering the password (this can be disabled with setting `webserver.api.cli_pw` to `false`.)
25+
To add your local user to the 'pihole' group use the following command
26+
27+
For Debian/Ubuntu/Raspberry Pi OS/Armbian/Fedora/CentOS
28+
29+
```code
30+
sudo usermod -aG pihole $USER
31+
```
32+
33+
For Alpine
34+
35+
```code
36+
sudo addgroup pihole $USER
37+
```

0 commit comments

Comments
 (0)