Hi Folks

I am confused as to how sshd invokes sftp-server when a user tries to
sftp in after getting authenticated.

For example .

When a user -- whose passwd is ageing -- logs in via SSH , He gets a
warning message for passwd expiry , whereas as when he sftps in , the
warning message is lost. (SSHd uses PAM for authentication in both the
cases)

Ideally , one would expect the warning messages , if any , to be
displayed in both the cases....

Could someone clarify ?

Thanks

Balu