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:
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:
sudo vim /var/lib/AccountsService/users/<user-name-need-to-hide>
Now you need to add the following configuration to the file you created in the previous step:
Restart the system
Now you need to restart your system to apply the changes. To do this, you need to run the following command:
sudo systemctl restart accounts-daemon.service
If you have any issue regarding this tutorial, mention your issue in the comment section or reach me through my E-mail.