@@ -19,6 +19,19 @@ We use `uid=1010` to not collide with any of the other standard system users, an
...
@@ -19,6 +19,19 @@ We use `uid=1010` to not collide with any of the other standard system users, an
NOTE: For a site setup where guardctrl will be accessed through a ~passwordless-SSH-interface, the guardian user should not have a password. Otherwise the guardian user can have a password as usual.
NOTE: For a site setup where guardctrl will be accessed through a ~passwordless-SSH-interface, the guardian user should not have a password. Otherwise the guardian user can have a password as usual.
### systemd and journald config
The guardian systemd --user setup needs to be configured to be "persistent" so that it won't be shut down if the guardian user is not logged in. This is handled with loginctl:
```shell
# loginctl enable-linger guardian
```
The system journald needs to be configured to store all logs indefinitely. This is done by setting `Storage=persistent` in `/etc/systemd/journald.conf`:
```
[Journal]
Storage=persistent
```
### guardctrl setup
### guardctrl setup
The `guardctrl` interface knows that it's running as the correct user by the presence of a `~/.guardctrl-home` file. Touch this file in the `guardian` user home directory:
The `guardctrl` interface knows that it's running as the correct user by the presence of a `~/.guardctrl-home` file. Touch this file in the `guardian` user home directory:
...
@@ -58,5 +71,17 @@ Occasionally it might be necessary to access the guardian user directly. If pas
...
@@ -58,5 +71,17 @@ Occasionally it might be necessary to access the guardian user directly. If pas