Skip to content

Historical: Linux-based prototype

Account security

This page documents the earlier Linux-based prototype as of 24 November 2026. It does not describe the independent Khelforge OS, and its steps are not instructions for it. See the independent Khelforge OS.

Partly implementedRecorded statusLast verified

Khelforge creates one local account at first boot and lets that account change its password and recovery key. systemd-homed owns the account record and the encrypted home. This is verified in disposable virtual machines only. Further accounts cannot be created from Khelforge yet.

When a system has no human account, the sign-in screen shows account setup instead of an account list. The installer itself creates no account, so no password is written to the new disk.

Only the local sign-in screen can ask for the first account, and only while no account and no encrypted home exist. If that cannot be checked, the request is refused. After the first account exists, setup is refused.

The account is an administrator (a member of wheel), with a LUKS2 home and a recovery key shown once. If creation does not finish in time, the screen says it is unfinished and no recovery key is shown. It is never reported as success.

Settings changes the password through systemd-homed as the signed-in user. An account with a recovery key must give the recovery key, because systemd-homed needs each secret to renew the encryption keys. Settings asks for it and says why. The old password stops working. The recovery key keeps working.

State Behaviour
Locked by an administrator Sign-in is refused, even with the right password
Existing directory at the new home’s path Creation is refused. The files were unchanged in the test
Home image from another computer Listed as an account, so setup is not offered. The image was unchanged
Power lost during creation Before completion, setup is offered again. After it, the account works and the recovery key can be replaced in Settings

Khelforge never deletes or replaces an existing home or home image by itself.

Virtual machine tests cover refused requests, a second account, a weak password, an existing directory, creation, administrator rights and locking. Power was also cut at several points during creation. Unit tests cover hidden accounts and an unreadable user database.

  • A new system with no account can be set up by whoever is at the keyboard. That is how first-boot setup works on this design.
  • Creating further accounts, removing accounts, changing the full name and fast user switching are not implemented.
  • Not tested on real hardware.