systemd icon indicating copy to clipboard operation
systemd copied to clipboard

homectl: operation on home user failed

Open devnull09 opened this issue 3 years ago • 0 comments

systemd version the issue has been seen with

251

Used distribution

Arch

Linux kernel version used

5.18.16

CPU architectures issue was seen on

x86_64

Component

homectl, systemd-homed

Expected behaviour you didn't see

During setup of a new user with fido2 authentication, a password is requested. The process of choosing a password to finish the setup should not be time sensitive.

Unexpected behaviour you saw

After the fido2 device pin is entered and the user presence is confirmed, a password is requested.

If the password is entered and confirmed within approximately 5 seconds, the process is successful.

However, if the user does not manage to enter the password with that short time period, the whole process failed with the error message:

Operation on home user failed: Transport endpoint is not connected

The status LED on the fido2 device would display a blue light after the invisible timer has expired. This was however not always reproducible as sometimes the led was not lit when the process failed.

Steps to reproduce the problem

Tested with a Nitrokey Fido2 device:

homectl create myuser --storage=fscrypt --fido2-device=auto --fido2-with-client-pin=yes

When asked for the new password, wait 10 seconds before confirming the repeated password

Additional program output to the terminal or log subsystem illustrating the issue

No response

devnull09 avatar Aug 11 '22 11:08 devnull09