Skip to main content
Topic: how do i change my username (Read 1391 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

how do i change my username

so i just installed artix and choosed a username that i regretted immediately. how do i change it?
i tried to change my username by using
Code: [Select]
usermod -l <old username> <new username> 

and
Code: [Select]
  usermod -d /home/<new username> -m -g <old username> -l <new username>  <old username>
but they threw this error at me. both of them.
Code: [Select]
usermod: user <username> is currently used by process 1339
i know that i need to be logged in as another user (probably root) but i dont know how to do that. and i know i need to have a all processes relating to my old username terminated. but again. i dont know how to do that. also the arch wiki said something about a "tty" but i dont know how to use/what it is either.

any help appreciated

 

Re: how do i change my username

Reply #1
Read the wiki more carefully.

https://wiki.archlinux.org/title/Users_and_groups#Change_a_user's_login_name_or_home_directory
Quote
Warning: Make certain that you are not logged in as the user whose name you are about to change. Open a new tty (e.g. Ctrl+Alt+F6) and log in as root or as another user and elevate to root. usermod should prevent you from doing this by mistake.