Hi.
The error message 'AuthorizedKeyCommandUser \"%s\" not found'
in user_key_command_allowed2()
should inform about non-existing username, not about command.
--- auth2-pubkey.c 14 Nov 2012 08:04:02 -0000 1.36
+++ auth2-pubkey.c 14 Feb 2013 16:50:04 -0000
@@ -480,7 +480,7 @@
pw = getpwnam(username);
if (pw == NULL) {
error("AuthorizedKeyCommandUser \"%s\" not found: %s",
- options.authorized_keys_command, strerror(errno));
+ username, strerror(errno));
free(username);
return 0;
}
Petr
applied - thanks. This will make 6.2 On Thu, 14 Feb 2013, Petr Lautrbach wrote:> Hi. > > The error message 'AuthorizedKeyCommandUser \"%s\" not found' in > user_key_command_allowed2() > should inform about non-existing username, not about command. > > --- auth2-pubkey.c 14 Nov 2012 08:04:02 -0000 1.36 > +++ auth2-pubkey.c 14 Feb 2013 16:50:04 -0000 > @@ -480,7 +480,7 @@ > pw = getpwnam(username); > if (pw == NULL) { > error("AuthorizedKeyCommandUser \"%s\" not found: %s", > - options.authorized_keys_command, strerror(errno)); > + username, strerror(errno)); > free(username); > return 0; > } > > Petr > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev >
Reasonably Related Threads
- Using AuthorizedKeysCommand in unprivileged sshd mode
- [Bug 983] Required authentication
- [Bug 983] Required authentication
- [Bug 2270] New: AuthenticationMethods - partial success is considered as failure
- Authenticate against key files before AuthorizedKeysCommand