* bug#55661: /etc/ssh/authorized_keys.d contains keys that have been removed
@ 2022-05-26 15:02 Ludovic Courtès
2022-05-26 15:20 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2022-05-26 15:02 UTC (permalink / raw)
To: 55661
In the wake of <https://issues.guix.gnu.org/55359#3>, I realized that
/etc/ssh/authorized_keys.d is stateful: we copy files from the
authorized-key directory there, but files already present remain.
IOW, keys remain authorized.
Why are we copying that directory instead of making a symlink to the
directory computed by ‘authorized-key-directory’ that’s in /gnu/store?
This is explained in ‘openssh-activation’:
;; 'sshd' complains if the authorized-key directory and its parents
;; are group-writable, which rules out /gnu/store. Thus we copy the
;; authorized-key directory to /etc.
Anyway, that code does intend remove the directory before copying it,
but there’s a typo:
(delete-file-recursively "/etc/authorized_keys.d")
Can you spot it?
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#55661: /etc/ssh/authorized_keys.d contains keys that have been removed
2022-05-26 15:02 bug#55661: /etc/ssh/authorized_keys.d contains keys that have been removed Ludovic Courtès
@ 2022-05-26 15:20 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-05-26 15:20 UTC (permalink / raw)
To: 55661-done
Ludovic Courtès <ludo@gnu.org> skribis:
> Anyway, that code does intend remove the directory before copying it,
> but there’s a typo:
>
> (delete-file-recursively "/etc/authorized_keys.d")
Fixed in 4577f3c6b60ea100e521c246fb169d6c05214b20.
Ludo'.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-26 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26 15:02 bug#55661: /etc/ssh/authorized_keys.d contains keys that have been removed Ludovic Courtès
2022-05-26 15:20 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.