I have an account with /usr/bin/nologin as the login shell.
If I try to su to that account, I get the message:
This account is currently not availableas expected.
In /etc/lightdm/users.conf, I hide all the users' names from the login GUI so all users have to type both their user name and password.
The problem is that account with the /usr/sbin/nologin shell can login using the GUI by inputing the right credentials (User Name+Password).
Removing the account home folder prevents GUI login but this creates another set of problems such as applications failing to launch.
How do I prevent GUI login for this account?
31 Answer
Answer copied from comments:
Just lock the account by using:
passwd -l username