I'm trying to display a customized message for "/usr/sbin/nologin". As far as I remember this can be accomplished by creating the file "/etc/nologin.txt" with the desired text in it.
But it doesn't work in Ubuntu 12.04 (LTS (GNU/Linux 3.2.0-38-generic x86_64)) - it displays only the "standard" message:
$ cat /etc/nologin.txt Sorry, there is no login shell $ nologin This account is currently not available.
Am I missing something?