Score:1

Problem with the user of ubuntu

cn flag

I faced a strange problem in ubuntu. I shutdown my laptop as usual and went to take my exam. But when I returned and opened my laptop, my username was lost from laptop and ubuntu prompted me to make user again.. why this happened ?

David avatar
cn flag
So many possibilities. OS corruption due to bad or failing hard drive is one of the most common.
Prakash Bhattarai avatar
cn flag
All the installed softwares are intact. Only user is lost and files associated with that user are lost
sudodus avatar
jp flag
Is there a backup of the home directory? Could someone play a prank? Is the the school's computer, and were you removed, because you 'passed the exam and should no longer need it'?
Prakash Bhattarai avatar
cn flag
Don't think so.. but today I have tried to change the shell with zsh but later on I unsinstalled zsh. Does it have something to do with user ?
sudodus avatar
jp flag
Yes, that is possible. Did you restore the configuration for bash (for your user ID)?
Prakash Bhattarai avatar
cn flag
Actually I ran some command and I got bored so without doing anything I uninstalled zsh. But one interesting thing is.. when i try to create new user with same name as before, It says this user is already taken.. But that user is not shown when I try to login
sudodus avatar
jp flag
It is strange that also the home directory disappeared. Is it in your home computer or in some server? Are you sure that it disappeared, maybe it is still there, but with a different name. Did you check the content of `/home` and the content of `/etc/group` ?
Prakash Bhattarai avatar
cn flag
So zsh was the main problem..
Prakash Bhattarai avatar
cn flag
So i got the problem.. I changed shell to zsh but later i deleted zsh.. so now it says like no such file usr/bin/zsh
sudodus avatar
jp flag
What happens after you re-install zsh? You can have several shells installed. Then you can setup your user to use one of the shells.
Prakash Bhattarai avatar
cn flag
I did it. Thank you for your time :)
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.