How do I hide a particular user from the login screen on a default install of 11.10 and higher? (ie. using LightDM)?

link|improve this question

59% accept rate
feedback

1 Answer

At that moment this method is not working because of a small bug in lightdm, it should be fixed soon. Please check the bug status before applying this method.


Heres what you want to do:

First, make a backup of your config.

sudo cp /etc/lightdm/users.conf /etc/lightdm/users.conf.bak

Then, you need to edit your config:

sudo nano /etc/lightdm/users.conf

You'll see something like 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
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserAccounts]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin

Of interest to us is the part here:

hidden-users=nobody nobody4 noaccess

To hide the username james, just add it like this:

hidden-users=nobody nobody4 noaccess james

Then, reboot your computer and it should be gone.

As a reference to others, see

See https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/857651

link|improve this answer
I tried this already, it doesn't work :/ See bug #857651 – detly Jan 21 at 4:03
@jrg, can you edit your answer to include the bug report and keep checking that bug? You have the right answer, its just doing what it should atm. – Bruno Pereira Jan 21 at 9:31
@Brunopereira, Sure thing. I'll go set the weekly reminder email. ;) – jrg Jan 21 at 11:34
Is this being integrated into the user accounts GUI? It's very handy to be able to do this. – Scaine Jan 22 at 8:23
@Scaine "Is it"? I don't know. I wasn't able to find a bug about it. – jrg Jan 25 at 13:25
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.