https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250081

            Bug ID: 250081
           Summary: no way to display immutable motd when update_motd="NO"
                    and /var/run is tmpfs
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: b...@freebsd.org
          Reporter: guy...@gmail.com

r350184 changed login(1) to read /var/run/motd.

As been noted in
https://lists.freebsd.org/pipermail/svn-src-head/2019-July/126776.html
there is a need to support displaying an immutable motd with specific exact
text at login.

To keep motd immutable and prevent it being prepended with uname output,
update_motd needs to be set to "NO" in rc.conf to not generate /var/run/motd.
An immutable motd file can then can be created in /var/run
but if it is a tmpfs, the file will not survive a reboot.

https://reviews.freebsd.org/D26654
Phabricator review to change login(1) back to reading /etc/motd.
This allows using /etc/motd as a regular file when update_motd="NO".
update_motd="YES" causes /etc/motd to be created as a symbolic link to
/var/run/motd so login(1) will still read it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to