Re: Question: as a user of systemd-homed --storage=luks how to change --ssh-authorized-keys= without asking root?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Di, 09.07.24 18:02, Laurent GUERBY (laurent@xxxxxxxxxx) wrote:

> 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@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@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@trixie$ homectl passwd
>
> And changing the utest --ssh-authorized-keys= as root worked too.
>
> Did I miss something?

We currently do not allow to change that without privs. There's a PR
here to add what you are looking for:

https://github.com/systemd/systemd/pull/31153

Lennart

--
Lennart Poettering, Berlin



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux