Bug 275274 - /etc/motd
Summary: /etc/motd
Status: Closed DUPLICATE of bug 275273
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 14.0-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-23 02:02 UTC by dan
Modified: 2023-11-23 05:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dan 2023-11-23 02:02:22 UTC
/etc/motd is overwritten now anytime a system administrator edits the file.

/etc/motd is currently a sym link to /var/run/motd. Currently way things work,
/etc/motd.template is used along with a freebsd header everytime 
service motd restart is run or a reboot occurs, effectively killing anything added to /etc/motd.

A fix would be "rm /etc/motd; ln -s /etc/motd.template /etc/motd"

There is no reason for /etc/motd to do a useless symlink to /var/run/motd just for changes to be overwritten, when it would be way better if the link was made to /etc/motd.template instead so the system administrators changes are not lost between reboots etc.
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2023-11-23 05:39:47 UTC

*** This bug has been marked as a duplicate of bug 275273 ***