Ubuntu – My Account not visible in User Accounts

lightdmusers

I am currently set to automatically log into this machine and I would like to change that. However, when I go to User Accounts, I am no longer listed.

lightdm/users.conf file is as such:

[UserAccounts]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin

My current UID is 503, username is none of the listed hidden-users, and my shell is /bin/bash.

Running Ubuntu 13.04 with Unity on a Dell Optiplex 3010.

Also, greeter-show-manual-login=true had to be put in lightdm.conf so that I could log in because my account does not show up on the greeter either.

no account under My Account

Best Answer

Castis' answer did not quite fix the issue for me, even after a full restart, on Ubuntu 16.04. After editing /etc/login.defs to change UID_MIN and GID_MIN from 1000 to 500, I could use adduser to create new accounts with low UIDs, but my old account (with UID 502) was still not being shown.

It seems that AccountsService was caching the fact that it once thought this was a system account. To fix this, I had to manually edit: /var/lib/AccountsService/users/<username>.

In the [User] section, I had to change SystemAccount=true to SystemAccount=false

After restarting the AccountsService daemon (sudo service accounts-daemon restart) my username reappeared in the System Settings->User Accounts GUI.

Notably, this was an account that was carried over from a previous install of 14.04, and had had its uid manually changed.

Related Question