加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-13 17:11:20 所属栏目:Linux 来源:网络整理
导读:出于某种原因,我昨天从标准的“Debian GNU / Linux自带无保证……”编辑了motd文件到我自己定制的消息.今天系统重启后,我的自定义消息消失了,它又回到了: The programs included with the Debian GNU/Linux system are free software;the exact distributio
出于某种原因,我昨天从标准的“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.

如何使我自己的信息永久化?顺便说一句,我使用的是Debian 6.

解决方法

Debian默认将/ etc / motd作为/ var / run / motd的符号链接.这是在/etc/init.d/bootlogs启动时更新的.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读