linux – motd登录消息在重启后不会保存

前端之家收集整理的这篇文章主要介绍了linux – motd登录消息在重启后不会保存前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
出于某种原因,我昨天从标准的“Debian GNU / Linux自带无保证……”编辑了motd文件到我自己定制的消息.今天系统重启后,我的自定义消息消失了,它又回到了:
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.
@H_301_4@如何使我自己的信息永久化?顺便说一句,我使用的是Debian 6.

解决方法

Debian默认将/ etc / motd作为/ var / run / motd的符号链接.这是在/etc/init.d/bootlogs启动时更新的. @H_301_4@要使用自己的motd,只需破坏/ etc / motd符号链接并将其创建为常规文件即可.

原文链接:https://www.f2er.com/linux/399595.html

猜你在找的Linux相关文章