在运行 Ubuntu 14.04 的服务器上,我You have new mail每次通过 SSH 登录时都会在 motd 中看到。
问:这是谁告诉我的?
邮件没有找到任何东西,我不希望这台服务器上有任何邮件。
“我”和“根”的 crontab 包含MAILTO="".
文本You have new mail不在/etc/motd或 中/var/run/motd。
我希望一些命令是相关的:
me@AtomServer:~$mail
No mail for me
me@AtomServer:~$sudo mail
No mail for root
me@AtomServer:~$sudo ls -l /var/mail
total 8
-rw------- 1 la mail 1 Jul 15 22:12 me
-rw------- 1 root mail 1 Jul 27 19:59 root
me@AtomServer:~$
me@AtomServer:~$grep '^s.*motd' /etc/pam.d/sshd
session optional pam_motd.so # [1]
me@AtomServer:~$$ls -la /etc/update-motd.d …Run Code Online (Sandbox Code Playgroud)