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」文件不能这样使用。
