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.
This commit is contained in:
parent
e05c5e0b93
commit
41fbe47cdf
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue