2

When i start my Ubuntu 18.04 system i get prompted to the login screen but my user appears twice in the login screen the first instance accepts my usual password but the second instance doesnt what does this mean? how can i remove the second instance?

to be more clear, i don't get TWO login screens, instead one login screen with my user duplicated in it. thanks in advance.

I tried to look for the file at which the login entries was present, but didn't find it and didn't find a bug like mine.

1 Answers1

1

This can happen if two user accounts have the same GECOS full name.

You can check the usernames and GECOS records for all the (likely) non-system accounts using

getent passwd | awk -F: '$3+0 > 500 {print $1 ": " $5}'

If there's a duplicate in the fullnames (the first comma-separated field of the GECOS record), then you can change one or other (or both, if you prefer) using the chfn command e.g.

sudo chfn -f 'new name for userX' userX

If you don't even want to see an entry for one of the accounts, then you can hide it from the greeter altogether - see How do I hide a particular user from the login screen?

Of course, if the account was created in error you can delete it - but be sure to back up any data just in case.

steeldriver
  • 142,475