Hi, fortune(6) is executed from .profile or .login; however it doesn't seem to honor .hushlogin file in other words if I touch ~/.hushlogin I would expect fortune not to be ran on login I think a condition should be added to .profile && .login to skip fortune if ~/.hushlogin exists Thanks!
Created attachment 239578 [details] dot.login patch not sure if the patch is done the right way
Created attachment 239579 [details] dot.profile patch
I have wondered the same thing a very long time ago :) Existence of ~/.hushlogin changes the behavior of login(1) and sshd(8). https: //cgit.freebsd.org/src/tree/usr.bin/login/login.c?h=releng/14.0#n444 https: //cgit.freebsd.org/src/tree/crypto/openssh/session.c?h=releng/14.0#n824 login(1) also behaves differently depending on ~/.login_conf. It is enabled by writing me:hushlogin: https: //cgit.freebsd.org/src/tree/usr.bin/login/login.c?h=releng/14.0#n416 It seems that sshd(8) is not reading ~/.login_conf. It may have been read, but it seems that hushlogin has not been picked up. https: //cgit.freebsd.org/src/tree/crypto/openssh/session.c?h=releng/14.0#n1384 The existence of a file is one condition, but there are also conditions under which it is no longer needed when the file does not exist.