/etc/motd.tail 上的当天消息不起作用

Sop*_*rez 2 motd 14.04

正如 AskUbuntu(多线程)上的详细说明,我正在尝试更改当天的消息

这是我的编辑:

luis@Terminus:/etc$ cat /etc/motd.tail
 ____                    _        _         ____
/ ___|  ___  _ __   __ _| | __ _ (_) ___   / ___|  ___ _ ____   ____ _
\___ \ / _ \| '_ \ / _` | |/ _` || |/ _ \  \___ \ / _ \ '__\ \ / / _` |
 ___) | (_) | |_) | (_| | | (_| || | (_) |  ___) |  __/ |   \ V / (_| |
|____/ \___/| .__/ \__,_|_|\__,_|/ |\___/  |____/ \___|_|    \_/ \__,_|
            |_|                |__/
luis@Terminus:/etc$ sudo login
Terminus nombre: luis
Contraseña:
Último inicio de sesión: dom jul 26 23:01:33 CEST 2015 en tty1
Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-58-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

luis@Terminus:~$ ls /etc/motd.tail -la
-rwxr-xr-x 1 root root 372 jul 26 23:01 /etc/motd.tail
Run Code Online (Sandbox Code Playgroud)

对不起,我的 Ubuntu 是西班牙语,但我认为需要的部分很清楚:文件/etc/motd.tail忽略

我还能尝试什么?

hee*_*ayl 5

您正在使用错误的文件。正确的文件是/etc/motd.

来自man motd

/etc/motd 的内容在成功登录后由 pam_motd(8) 显示,但就在它执行登录 shell 之前。

缩写“motd”代表“今日消息”,这个文件在传统上一直用于这个目的(它需要的磁盘空间比发送给所有用户的邮件少得多)。

在 Debian GNU/Linux 上,还会显示 /run/motd.dynamic 的内容。该文件由 /etc/init.d/motd 在启动时生成。