Yes, imdeemvp, thats right!
When users log in via ssh and their password age has expired, they get only one line. f.e.:
Warning: your password will expire in 7 days
Thats all, and after their account is locked 7 days later, everybody tells me "i haven't seen any warning message"....
So i want to make the warning text (textmode, not graphical) more noticeable. f.e.:
Code:
************************************************
Warning: your password will expire in 7 days
Please change it with /usr/bin/passwd
************************************************
/etc/motd (method of the day) is not the right place, because as you discriped, it displays the text on every login, not only when the password will expire.