Both /sbin/nologin and /bin/false are used to refuse login attempt however they differ slightly on providing customizable error message.
Configuration guides for IT Administrators
Both /sbin/nologin and /bin/false are used to refuse login attempt however they differ slightly on providing customizable error message.