Solved hushlogin in ~/.login_conf is ignored

I'm trying to disable motd(5) message using login.conf(5). Previously, I could accomplish this by touching an empty file ~/.hushlogin. As the man page of login.conf(5) states, ~/.hushlogin should be able to replaced with the hushlogin field in login.conf. However, it isn't; motd is still displayed after login.

Here is my ~/.login_conf:
Code:
me:\
    :hushlogin:\
    :charset=UTF-8:\
    :lang=en_US.UTF-8:
FYI: locale(1) shows that the charset and lang field is applied as intended. I ran cap_mkdb(1) after modifying login.conf.
 
I'm trying to disable motd(5) message using login.conf(5). […]
How do you log in? With login(1)? It works as expected with login(1). However, ssh(1) and telnet(1) (in particular their daemons) might not respect ~/.login_conf or only partially (like you observe, language is set correctly but the motd(5) still gets printed), cmp. PR 269025 third comment.​
[…] I ran cap_mkdb(1) after modifying login.conf.
cap_mkdb(1) is only necessary for the system‑wide /etc/login.conf, cmp. PR 241412 third comment.​
 
Back
Top