GDM: how to remove root from user list?

Due to a misconfiguration, I was locked out of my user account. I had to log into the root account to recover my user account. After logging in once, GDM lists the root account in the list of users. How can I remove the entry and hide root from the list?

sudo rm -f /var/lib/AccountsService/users/root

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.