This is a good start, but you end up with your home directory and all subdirectories group owned as OldUserName. You need to something like this while logged in as the temporary user: $ sudo groupmod -n newGroupName oldGroupName That will fix up the group ownership as well.
User is changed but it destroyed my os completely. I lost all my settings, configurations, appearance,... non of my applications could be opened now. Thank you
Short and to-the-point tutorial! Many thanks Sir! Quick question, after renaming the username and account name, now the account name, under the Ubuntu login page, shows "not listed?". What does that indicate?
A couple of things after doing all the steps in the video: In Files app, under Ubuntu, home, the folder from the tempuser was still there. To delete it: sudo rm -r /home/tempuser (or whatever your temp user is called). Another thing, if you type: id in terminal it would show you that gid and groups are still under the old username.
Well i think this is only suitable for new user. Everything is perfect, except for when i rebooted back to the user that i need to change it's name. Everything else (Application/OS dir) is rotten. Well in my case, i quickly change back the old user name and everything get back to normal. IMO, I think the username_change is far more risky and require more knowledge to do it correctly since thing in /etc/ or like variables might be changed as well. But thanks anyway, almost make my OS to garbage :))
OK, but what about the group? How do you change the group membership to new-name so that you have the same group name as username? Your approach here changes the user name, but the group name is the old username
It's been a few years since I used my Linux computer. I don't know my user name and I don't know my password. To change each one I need to know the other. I thinbk I'll go back to Windows on myb Linux machine. I now have a Windows machine. I'll now record all my information in a document onevery machine I use.
I created a different user called temporal and login in this temporal user. I tried to change it and got this error. usermod: user azureuser is currently used by process 89786. The same as when I try to do it when I was logged.
Thank you so much for making this video. Could you please paste the commands in the description so dumb Linux users like me can cut and paste the commands without making any mistakes?
HI Matan I do the same procedure you showed in the video. but lately I have this error after I issue the command "sudo usermod -l newname oldname . usermod: user oldname is currently used by process every time i got different ps number. any idea why ?
Write this command in temporary user Sudo pkill -u old username Then again write that command in temporary user sudo usermod -l new username -m -d /home/new username old username
So i made a mistake and typed in a command 'sudo su' and proceeded to input in my password word. Now the problem is after, i deleted one i dont know if its file or what and ever since all i see is like a reset Ubuntu but i still have all my applications here and the settings i did are all gone as well
I changed the username but I didn't create the new user before and now I can't log in, can you help me? I did it wrong and now I'm desperate and can't use my laptop
Try using the cli. Ctrl + F7. It will take you out of the GUI interface. Then log in with your password. Once you’re logged in, runs sudo -s to change user to root.