In this article, I will show you how to hide a particular user from Ubuntu login screen. If your system uses AccountService, you cannot hide user from greeter screen by editing lightdm. So do it, there is a very simple process and you can do it in a few minutes. Let's get started.

Check AccountService is exists

Before you start, you need to check whether your user is exists in AccountService or not. To do this, you need to run the following command:
1
ls /var/lib/AccountsService/users

Check whether your user is exists in the output. If it is exists, you can proceed to the next step. If not, you need to create a user account using the following command:

1
sudo vim /var/lib/AccountsService/users/<user-name-need-to-hide>

Add configuration

Now you need to add the following configuration to the file you created in the previous step:
1
2
[User]
SystemAccount=true

Restart the system

Now you need to restart your system to apply the changes. To do this, you need to run the following command:
1
sudo systemctl restart accounts-daemon.service

Conclusion

If you have any issue regarding this tutorial, mention your issue in the comment section or reach me through my E-mail.

Happy Coding