How to change username in Ubuntu 22.04

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024

Комментарии • 75

  • @MacMcClellan-squoggle
    @MacMcClellan-squoggle 2 года назад +10

    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.

    • @andynl6443
      @andynl6443 Год назад +1

      Correct. Also housekeeping: $ cd /home and $ sudo rm -r temporaryuserfolder

    • @haremprotagonist1118
      @haremprotagonist1118 11 месяцев назад

      I haven't did this, now will it have any effect in my daily usage?

    • @tex24
      @tex24 2 месяца назад

      Exactly! Thanks for the additional details!

  • @zeinabashjaei3302
    @zeinabashjaei3302 10 месяцев назад +5

    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

    • @Whoknowsthatman
      @Whoknowsthatman 10 месяцев назад

      Did you follow every step?

    • @zeinabashjaei3302
      @zeinabashjaei3302 10 месяцев назад

      @@Whoknowsthatman yes I did

    • @Reaper19000
      @Reaper19000 5 месяцев назад

      I encountered the same issue! Lost all my data and now I can't even log back into my account. Should have backed up my home directory...

  • @tesit8160
    @tesit8160 Год назад +1

    Thanks a lot, I had almost lost the video while switching to a new user .... Worked fine for me !

  • @jean-eudesamoussou2185
    @jean-eudesamoussou2185 Год назад +1

    Clear, precise, concise. Thank you very much for this tutorial

    • @absprog
      @absprog  Год назад +1

      I'm happy to hear that the video was clear and to the point. Thanks for watching and leaving a comment Jean-Eudes 👍

  • @bonOhm
    @bonOhm 2 месяца назад

    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.

    • @HeyFaheem
      @HeyFaheem 2 месяца назад

      Just type `sudo groupmod -n newgroupname oldgroupname`
      This should change the group ownership (gid) as well

  • @albrettnell
    @albrettnell 10 месяцев назад

    Excellent tutorial - I also like that you explained what the options do. Very helpful.

    • @absprog
      @absprog  10 месяцев назад +1

      Thanks for your support and kind words!

  • @vigneshbalaji21
    @vigneshbalaji21 6 месяцев назад

    Very useful and informative in a step by step manner. Awesome :)

    • @absprog
      @absprog  6 месяцев назад

      Thanks Vignesh for your support and kind words!👍

  • @wouivu
    @wouivu 10 месяцев назад

    Thank you so much! Best tutorial ever watched! Clear and informative!

    • @absprog
      @absprog  10 месяцев назад

      Thanks for your support and kind words!👍

  • @davidisrael5627
    @davidisrael5627 2 года назад

    I LOVE YOU!! It worked perfectly this was the quickest and best user-friendly video I found on the subject yet, I subscribed. !עם ישראל חי

    • @absprog
      @absprog  2 года назад +2

      Thanks a lot! Glad it helped!

  • @leranma8626
    @leranma8626 7 месяцев назад

    Great video! Works perfectly on my Ubuntu 20.04!!!

    • @absprog
      @absprog  7 месяцев назад

      Thank you for your feedback!👍

  • @JustMyTwoCentz
    @JustMyTwoCentz 2 года назад

    Thanks so much ! This is the best tutorial i ever watched, on anything, period. Thank you !

    • @absprog
      @absprog  2 года назад

      😂 thanks a lot!

  • @tex24
    @tex24 2 месяца назад

    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

  • @FWDSKILLZONE
    @FWDSKILLZONE Год назад

    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?

  • @southernexposure123
    @southernexposure123 Год назад

    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.

  • @VuDucBi
    @VuDucBi 10 месяцев назад +1

    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 :))

  • @user-od4to4on3b
    @user-od4to4on3b Год назад

    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.

  • @francesco5007
    @francesco5007 9 месяцев назад

    That was very helpful! Thanks a lot! One more question: how can I change also what comes after the @?

    • @francesco5007
      @francesco5007 9 месяцев назад

      fixed it 😃

    • @absprog
      @absprog  9 месяцев назад

      Thanks for your support👍

    • @absprog
      @absprog  9 месяцев назад

      👍

  • @thatthila
    @thatthila Месяц назад

    thank you for sharing this ^^

  • @elvykamunyokomanunebo1441
    @elvykamunyokomanunebo1441 Год назад

    thanks pal, you've earned a rocket point from me
    :)

  • @keydyusufmohamed7321
    @keydyusufmohamed7321 Год назад

    Hi...thanks a lot for the tutorial!! Now could you please help me to customize the icon-theme-name on the login screen? thank you

  • @user-dy4uj4er6s
    @user-dy4uj4er6s Год назад

    You are the best, seriously! keep it, please!

    • @absprog
      @absprog  Год назад

      Wow, thank you! 😊

  • @StartBuilding
    @StartBuilding Год назад

    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

  • @user-xj9re7gv5g
    @user-xj9re7gv5g 8 месяцев назад

    Thank You! Great explanation!!!

    • @absprog
      @absprog  8 месяцев назад

      Glad it was helpful!👍

  • @RamiEb-kt7zf
    @RamiEb-kt7zf 8 месяцев назад

    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 ?

    • @WiggleByte3.0
      @WiggleByte3.0 7 месяцев назад

      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

  • @arkhamian7586
    @arkhamian7586 2 года назад

    Worked for me. Thank you!

  • @profissionaldavozb
    @profissionaldavozb 11 месяцев назад

    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

    • @absprog
      @absprog  11 месяцев назад +1

      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.

    • @profissionaldavozb
      @profissionaldavozb 11 месяцев назад

      @@absprog Do you know how I can restore it to factory settings via BIOS since I can't log in? Is there a video teaching this? Please !

  • @Nobody_114
    @Nobody_114 2 года назад

    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?

    • @absprog
      @absprog  2 года назад

      Sure, just did it

  • @Ultima.14
    @Ultima.14 Год назад

    Hey I did this and now it asks me a password but I didn't have one before...

  • @rsp8144
    @rsp8144 Год назад

    its terrifying how to get our username i can not do anything showing error

  • @L_37
    @L_37 10 месяцев назад

    It worked! Thank you!

    • @absprog
      @absprog  10 месяцев назад

      That's great to hear👍

  • @ashakulislam3870
    @ashakulislam3870 Год назад

    Getting this error while adding temp user to the sudo group
    temp is not in the sudoers file. This incident will be reported.

  • @idnyxf3r130
    @idnyxf3r130 9 месяцев назад

    Me funcionó gracias

    • @absprog
      @absprog  9 месяцев назад

      Es genial escuchar eso👍

  • @Wael_Fakhri
    @Wael_Fakhri 11 месяцев назад

    thanks a lot , working fine 👍👍👍👍👍

    • @absprog
      @absprog  11 месяцев назад

      That's great to hear 🤗

  • @makakolemafane9933
    @makakolemafane9933 9 месяцев назад

    Nice one!

    • @absprog
      @absprog  9 месяцев назад +1

      Thanks!👍

  • @adzplus1
    @adzplus1 Год назад

    Thank you so much!

  • @web3noobie
    @web3noobie Год назад

    Matan never disappoints.
    Bro you are THE BEST

    • @absprog
      @absprog  Год назад

      Wow, thank you for that. You made my day 🤝

  • @Atlas20008
    @Atlas20008 5 месяцев назад

    Don't try to play it smart and edit it from the text file I tried it and I fucked up😂😅

  • @CallMeNix1337
    @CallMeNix1337 Год назад

    thank you bro

  • @emilianol.3017
    @emilianol.3017 Год назад

    Genius

  • @epharedam
    @epharedam Год назад

    Tysmmm

    • @absprog
      @absprog  Год назад

      You're welcome! 👍