Patch for changing expired passwords

Markus Friedl markus at openbsd.org
Tue Oct 16 18:44:20 EST 2001


On Mon, Oct 15, 2001 at 01:00:54PM -0500, Dave Dykstra wrote:
> +		if (s->ttyfd != -1) {
> +			msg = "Password for %.100s has expired, running 'passwd' to reset it";
> +			/*
> +			 * Can't pass "user" to 'passwd' because Linux doesn't
> +			 * allow it.
> +			 * Also, the prompt is friendlier without "user".
> +			 */
> +			command = PASSWD_PATH;

i'd prefer to move this to do_child and call packet_disconnect() if
no tty is available.



More information about the openssh-unix-dev mailing list