News for hackers. Stuff that matters.
Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by rlpb on Monday August 08, 2016 @07:12PM (#12251441)
Don't like it? Just drop the calls to pam_motd.so from /etc/pam.d/login. Done.
Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by eropple on Monday August 08, 2016 @09:24PM (#12251940)
I feel obligated to point out that having to "just" do that is kind of really insane. Making the default provide effectively useless information (nobody's gonna scroll back to read that motd for an IP address and it sure doesn't replace running htop for system info), and then making actually fixing the original mistake difficult and annoying, is not a good look.

Also, as the sibling notes, this kills MOTDs entirely, not because for some reason we need to bolt this whole contraption together and then not really document it at all. Ubuntu!

Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by rlpb on Tuesday August 09, 2016 @12:23AM (#12252606)
> Making the default provide effectively useless information...

That's quite presumptuous I think. You may find it effectively useless. Others may not. The job of a default is to cater for a majority. One size does not fit all, so it is certain that there will exist people unhappy about the default whatever it is. So just because some number of people complain does not mean that the default is wrong.

On the other hand, I accept the documentation could be improved, but this does generally need someone other than the author to point out deficiencies. The author could have written and submitted a documentation patch in the time it took him to write that blog post.

Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by voidz on Monday August 08, 2016 @10:00PM (#12252084)
You use a lot of words. Insane? It is actually quite the opposite, pam is where the author should have started. Not knowing about pam and refusing to learn about it, as a server administrator: if I ever would call something insane..
Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by CaptSpify on Tuesday August 09, 2016 @12:11AM (#12252571)
Why does the motd need any interaction with pam? Those are two completely separate things
Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by prodigal_erik on Monday August 08, 2016 @08:07PM (#12251684)
It looks like that also skips displaying /etc/motd. If you just want to skip regenerating /var/run/motd, you have to blow away /etc/update-motd.d but continue running pam_motd.so because it's bizarrely responsible for both.
Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by dingaling on Tuesday August 09, 2016 @07:07AM (#12253735)
Making changes in PAM is never trivial. One error and users are locked-out.
Re:Fear and Loathing in Linux, or Who Needs /etc/motd (2010) by digi_owl on Tuesday August 09, 2016 @07:52PM (#12258506)
More and more i see why Slackware has yet to adopt PAM support.