How do I make SSH use the MAIL variable set by /etc/login.defs?
The problem I'm having is when a user logs in with SSH the $MAIL var = /var/mail/user! If I "su - user" MAIL is correctly set to ~user/mail
Next, I edited /etc/login.defs commenting out MAIL_DIR and setting the correct path for QMAIL_DIR & MAIL_FILE exim is configured to deliver email to: ~user/mail -- I have verified that mail is correctly being delivered to ~user/mail/new updated login & ssh in /etc/pam.d/ so that can correctly inform users of new mail upon login -- This works as expected |
I finally managed to solve this by adding MAIL=~/mail to /etc/profile ... I'm not sure if that's the best way to solve the problem. mail now gives me the error
Quote:
|
All times are GMT -5. The time now is 04:21 PM. |