[systemd-devel] Question: as a user of systemd-homed --storage=luks how to change --ssh-authorized-keys= without asking root?
Laurent GUERBY
laurent at guerby.net
Tue Jul 9 16:02:35 UTC 2024
Hi,
On a debian testing system (systemd 256.2-1) I created a user with:
trixie# homectl create utest --storage=luks --ssh-authorized-keys="xxx"
The I used ssh to login as the user
ssh utest at trixie
And it all worked as described here as new feature of systemd 256:
https://mastodon.social/@pid_eins/112370336310304287
My question is how is the user "utest" able to change its
--ssh-authorized-keys? I tried:
utest at trixie$ homectl update utest --ssh-authorized-keys="xxx"
Assertion 'user_name' failed at src/home/homectl.c:237, function
acquire_existing_password(). Aborting.
So without success.
Changing password worked as the user:
utest at trixie$ homectl passwd
And changing the utest --ssh-authorized-keys= as root worked too.
Did I miss something?
Thanks for your help,
Sincerely,
Laurent GUERBY
More information about the systemd-devel
mailing list