The user's quotas on the server were reduced from 200MB to 100MB. Besides sending emails to all users, it was requested that a message should communicate the change every time a user access the server. Which of the following is the correct method to configure this?

A. Put the message text in the /etc/login-message file
B. Put the message text in the /etc/motd file
C. Put the message text in the /etc/default/login file.
D. Put the message text in the /etc/passwd file, after all users entries.
E. There is no way to do this because the administrator has no permission to change the .bash_profile file foreach user.

題解

「/etc/motd」(message of the day)檔案中的文字訊息,會在使用者成功登錄且尚未執行shell的時候顯示出來。所以答案是選項B。

選項A,沒有「/etc/login-message」檔案。

選項C,沒有「/etc/default/login」檔案。

選項D,「/etc/passwd」檔案不能這樣使用。