Score:0

Can't see username at login screen after 20.04 upgrade

ng flag

After upgrading to ubuntu 20.04 from 18.04, I can't see my user in log in screen. When I use cat /etc/passwd as root. My old user was not listed there.

Then I created a new sudo user, and logged in with that user. I went to home folder of my old user and when I used ls -l. I was able to see my old username as the owner. Then I tried sudo <old_username> but I had authentication failure after I enter my password.

I don't know how is that possible. It's not listed in /etc/passwd but I can see it's an owner of a file.

So my question is: Is there a way to use my old user again?

FedKad avatar
cn flag
What is the output of the command `id _old_username_`? What is the output of the `ls -ld /home/_old_username_` when you try to get info about your "old user's home" directory?
hr flag
The outputs of `sudo pwck -rq` and `sudo grpck -rq` (if any) might be helpful as well (they will indicate any inconsistencies between the passwd and shadow files)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.