Hi. In sshd_config(5) AuthorizedKeysCommandUser is documented as follows: >AuthorizedKeysCommandUser > Specifies the user under whose account the AuthorizedKeysCommand > is run. It is recommended to use a dedicated user that has no > other role on the host than running authorized keys commands. It should have the default of this directive documented, i.e. whether it needs to be manually set when AuthorizedKeysCommand is used, or whether it's simply always the user under which sshd runs. Cheers, Chris.
fixed: +If no user is specified then +.Cm AuthorizedKeysCommand +is ignored.
Hi. I've just tried that, and it seems it's not ignored, but sshd fails to start, when AuthorizedKeysCommandUser is unset, while AuthorizedKeysCommand is set.
tweaked: revision 1.186 date: 2014/12/22 08:04:23; author: djm; state: Exp; lines: +8 -4; commitid: GUvlwbDWDq69eUhh; correct description of what will happen when a AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser is not (sshd will refuse to start)
Thanks :-)
Hey Damien. Let me just reopen this once more as I've discovered by chance another unexpected behaviour by this (which might be a bug)... just have a look and decide... and feel free to close it again. As we found out above, having: "AuthorizedKeysCommandUser" unset while having "AuthorizedKeysCommand" set to anything but "none" and the daemon will not start. Interestingly, having AuthorizedKeysCommandUser set to the empty value, e.g. AuthorizedKeysCommand /bin/test AuthorizedKeysCommandUser and the daemon *will* actually start, but it seems that /bin/test is nevertheless never executed. So this is no security issue, but I guess for consistency it shouldn't start either when AuthorizedKeysCommandUser is explicitly set to the empty value. Thanks, Chris.
OpenSSH 6.8 is approaching release and closed for major work. Retarget these bugs for the next release.
Retarget to 6.9
I don't see how sshd can start with an empty AuthorizedKeysCommandUser: /etc/ssh/sshd_config line 60: missing AuthorizedKeysCommandUser argument.
Which version did you use for testing? I've just tried again with 6.7p1 and at least that behaves as I described before, i.e. it starts up with empty Username.
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1