Note when running as another user in systemd
Headscale commands fail when running them as the current user instead of the user defined in the systemd file. This note provides 2 methods of how to correctly run the headscale commands.
@@ -138,6 +138,16 @@ RuntimeDirectory=headscale
WantedBy=multi-user.target
```
+Note that when running as the headscale user ensure that, either you add your current user to the headscale group:
+```shell
+usermod -a -G headscale current_user
+```
+or run all headscale commands as the headscale user:
+
+```shell
+su - headscale
+```
+
2. In `/etc/headscale/config.yaml`, override the default `headscale` unix socket with a SystemD friendly path:
```yaml
