ssh and forced password changes

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a wrapper on my password that prints out directions to my
users.  This works with everything other than ssh.  When using ssh the
directions do not print out, and the user is dropped right into the
passwd command.  What am I doing wrong?

Thanks -

Re: ssh and forced password changes

Quoted text here. Click to load it

Which SSH implementation and version are you using?

Also, are you using PAM?  If so, the SSH daemon will probably use the
pam_chauthtok() function (OpenSSH does, not sure about others).  In
that case your wrapper is never invoked, but you can get a similar
effect by adding something like pam_echo to the "password" stack that
sshd uses.

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Site Timeline