重新启动后,motd 登录消息不会保存

Dav*_*vid 4 linux debian ssh

出于某种原因,我昨天将 motd 文件从标准的“Debian GNU/Linux 附带绝对没有保证......”编辑为我自己的自定义消息。今天系统重启后,我的自定义消息消失了,它又回到了:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Run Code Online (Sandbox Code Playgroud)

如何使自己的消息永久化?顺便说一句,我正在使用 Debian 6。

Jam*_*man 7

Debian默认有/etc/motd一个符号链接/var/run/motd。这是在启动时更新的/etc/init.d/bootlogs

要使用您自己的 motd,只需断开/etc/motd符号链接并将其创建为常规文件即可。