For kdm you could do that easily in its configuration module…
No idea about lightdm.
But, lightdm’s users.conf says this:
#
# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
So I would suggest to try to change /var/lib/AccountsService/users/ftp-user, there should be a line “SystemAccount=false” there. Change it to “SystemAccount=true”, that should hide the user. Or just add “SystemAccount=true” if such a line does not exist.
Ah, ok.
Then apparently this file only gets created when you login as that user.
For the record (maybe somebody else stumbles over this and finds this thread), if you have to create the file manually, it should look like this I suppose:
[User]SystemAccount=true
Or uninstall accountsservice. LightDM doesn’t need it AFAICS, and would use the /etc/lightdm/users.conf if it’s not available.
But this will also uninstall gdm and gnome-control-center (on my system; there might be other packages that need it), so (especially because of the latter) might not be an option for you.
But if you create that file manually just for hiding the user, you don’t have to set “Language” and “XSession”.
Those are used to store the user’s preferred language and desktop environment respectively.
Btw, in my previous post the formatting got destroyed for some reason. The file should look like this of course: