Ubuntu 6.10 /etc/motd
Up to and including Ubuntu 6.06, /etc/motd was managed similarly to FreeBSD’s: replace one line to note some information about the kernel, leave the rest of the contents alone. That way, an administrator can edit the motd anytime he likes and users will see the new version the very next time they log in.
Ubuntu 6.10 takes a different approach: /etc/motd is a symlink to /var/run/motd, which is at boottime generated from uname output+/etc/motd.tail. Upside: /etc can now be a readonly mount (I’m assuming this is their rationale). Downside: updating the motd without rebooting means applying the same edit to two different files equally. Bah. The manual pages do not mention this at all, too.
At least FreeBSD has /etc/rc.d/motd which you can run; in Ubuntu the motd magic is hidden in the middle of /etc/init.d/bootmisc.sh which also does things like backup your dmesg. Not very flexible.
Ubuntu workaround: remove the symlink; tough luck for the uname gnomes.
Posted in syndicated | Comments Off
