News for hackers. Stuff that matters.
Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by ckastner on Tuesday August 09, 2016 @04:08AM (#12253238)
It is almost comical how the author went info full rage mode about a change without even pretending to try to comprehend why it was implemented.

Yeah, why would you want to generate the motd -- the message of the DAY file -- dynamically, through a daily cron job? Ludicrous! That file is supposed to be static!

And that was literally just the opening statement. The rest of the article is also littered with misinterpretations and misrepresentations.

Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by gkya on Tuesday August 09, 2016 @04:43AM (#12253326)
That's not what he criticises. His criticism is about all the bloat that's there as layers of unnecessary abstractions for what can be done with a simple script that's run regularly by cron as root (or rather as a separate motd user who can write to /etc/motd, for better security).
Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by ckastner on Tuesday August 09, 2016 @05:48AM (#12253497)
A simple script may be sufficient to address your needs, but please don't generalize that to everyone else.

Simple counter-example to your point: other Debian packages who wish to provide information in /etc/motd. The solution to go with drop-in directories (just like /etc/cron.d) has certain advantages over other patterns, but the author seems to be oblivious to all of this.

Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by gkya on Tuesday August 09, 2016 @06:35AM (#12253650)
It should be obvious how to disable the mechanism for being able to use the normal, expected behaviour. The author is hostile in his way of writing, but the point stands. Furthermore, motd is a tool for sysadmin anouncements, not random news from random packages, so autogenerating is not all that useful.
Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by ckastner on Tuesday August 09, 2016 @07:09AM (#12253741)
> It should be obvious how to disable the mechanism for being able to use the normal, expected behaviour.

The author posted the following as the conclusion of the article: remove the symlink, create your own motd.

  root@tessier:/etc# rm -rf motd && echo "DO I WORK NOW??" > /etc/motd
It doesn't get much simpler or intuitive than that.

> Furthermore, motd is a tool for sysadmin anouncements, not random news from random packages, so autogenerating is not all that useful.

Nobody suggested it was for random news for random packages. Useful examples would be output from smartmontools, unattended-upgrades, systemd or any other sysadmin-relevant package which might perform periodic tasks in the background.

Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by gkya on Tuesday August 09, 2016 @07:50AM (#12253883)
For your examples, local mail is more fit than anything. The user may want to look back to past notifications, archive, delete, read later etc. It's easy, just run "mail <user>", or:

  mail -s '<subject>' $(awk -F: '/^<group-name>/ {print $4;}' /etc/group  | tr , ' ')
Good use of motd: pointers to essential reading for new users, like a tutorial, some man pages, etc.; contact information, to sysadmins, product help desk etc. The user reads it to get clues on how to get going with the system, then runs 'touch $HOME/.hushlogin' to silence it.

Edit: Besides, the manual does not tell you that simply breaking the symlink will do the desired effect.

Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by IsmaOlvey on Tuesday August 09, 2016 @10:29AM (#12254695)
> Yeah, why would you want to generate the motd -- the message of the DAY file -- dynamically, through a daily cron job? Ludicrous! That file is supposed to be static!

Running a set of shell scripts on every login is not the same as generating a file through a cron job. The author is complaining about the former, while you're stating he complains about the latter.

It's would be proper to take care not to misrepresent matters while accusing others of doing it.