Score:0

Usermod command broke my user or so?

in flag
ewo

So I've been struggling with an issue that i can't find the answer for. What happened was that yesterday i tried using usermod to change my user name; which ended up badly for some reason causing my user file to get lost or something like that (can't log in or find the user in /home by the way) i can't explain too much my apologies; but i'll try to explain more if anyone has the time to help me since i have alot of important stuff on there.. (Just something i wanna add i'm sure the user file is hiding somewhere, because there's about 85gb still being used) another think i would like to add is that i'm dual-booting

raj avatar
cn flag
raj
What error message do you get (if any) when you try to login? If you can't find the user directory in `/home`, it is possible that `usermod` renamed the user, but did not rename the home directory. Look for both old and new name.
ewo avatar
in flag
ewo
I looked for both old and new names on tty2; i cannot login to the user from the main menu; but i'm for sure the user file is missing because not even my profile picture is there and when i do ls /home or ls on tty2 it doesn't show the new name or old name but for some reason i can log with the old name on tty2? but i can't copy anything to a new user.
raj avatar
cn flag
raj
If you login to old name on tty2, do you see the files in your home directory (what does `ls` on tty2 show)? What does `pwd` show when you login to old name? What does `ls -la /home` show? Is the old name or new name in `/etc/passwd` file? If yes, could you post the exact line from the file where the name appears? Are you able to run any command via `sudo`? If yes, type `sudo cat /etc/shadow` - is the old name or new name there? You need to investigate all possible places where an issue might occur...
ewo avatar
in flag
ewo
Sorry for late respond; i've been extremely busy. do you have any sort of contacts like telegram or something i can add you on? It's kind of painful to type all of that here.
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.