[LPIC-2]Volume 21

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」檔案不能這樣使用。

關於作者

Magic Len

各位好,我是Magic Len,是這網站的管理員。我是台灣台中大肚山上人,畢業於台中高工資訊科和台灣科技大學資訊工程系,曾在桃機航警局服役。我熱愛自然也熱愛科學,喜歡和別人分享自己的知識與經驗。如果你有興趣認識我,可以加我的Facebook,並且請註明是從MagicLen來的。

相關文章