logging of root logins

Markus Friedl markus at openbsd.org
Fri Nov 9 00:55:37 EST 2001


On Thu, Nov 08, 2001 at 01:59:25PM +0100, Arthur de Jong wrote:
> root and warthur both have user id 0. Sorry, I should have made that
> clearer. They both have different passwords and rsa keys and I would like
> to be able to make the distinction in the logs. Currently ssh only logs
> that a ROOT user has logged in, not which one.

hm, i don't think uid sharing is a standard unix feature.

however, i think that we should drop this:

	authlog("%s %s for %s%.100s from %.200s port %d%s",
	    authmsg,
	    method,
	    authctxt->valid ? "" : "illegal user ",
	    authctxt->valid && authctxt->pw->pw_uid == 0 ? "ROOT" : authctxt->user,
	    get_remote_ipaddr(), 
	    get_remote_port(),
	    info);

and not print ROOT in caps:

	authlog("%s %s for %s%.100s from %.200s port %d%s",
	    authmsg,
	    method,
	    authctxt->valid ? "" : "illegal user ",
	    authctxt->user,
	    get_remote_ipaddr(), 
	    get_remote_port(),
	    info);

do we really need backward compatibility for printing ROOT
in upper case?

-m



More information about the openssh-unix-dev mailing list