Bug 275274

Summary: /etc/motd
Product: Base System Reporter: dan
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed DUPLICATE    
Severity: Affects Many People CC: lwhsu
Priority: ---    
Version: 14.0-RELEASE   
Hardware: Any   
OS: Any   

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 ***