/usr/sbin/nologin & GUI login

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 available

as 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?

3

1 Answer

Answer copied from comments:

Just lock the account by using:

passwd -l username

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like