How do you change your username in Manjaro Linux?
Asked
Active
Viewed 1.1k times
2 Answers
2
Based from this answer in the Manjaro Forum:
Logoff. Switch to a tty console (Ctrl+Alt+F4).
Login as root.
Edit /etc/passwd. Replace username. Remember to save file.
nano /etc/passwd
Edit /etc/shadow. Replace username. Remember to save file.
nano /etc/shadow
Edit /etc/group. Replace username. Remember to save file.
nano /etc/group
Finally, rename your current home folder
mv /home/oldusername /home/newusername
Reboot.
reboot
crypdick
- 1,713
-
Why should you NEVER edit the /etc/shadow file directly? – αғsнιη Oct 11 '22 at 09:06
0
I did that and now when I log in, I just see my mouse..
When I entered tty console again and did pwd, it had shown /home/myoldusername even after I did mv /home/oldusername /home/newusername.
But it is always same.
It is possible, that it is my second hdd drive which is mounted to /home?
Thank you
seonel
- 1
- 1
-
This should be a comment to the previous answer. Said answers lacked the fact that /etc/passwd must also have the homedir updated. – Uriel Oct 10 '22 at 18:23
-
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review – Uriel Oct 10 '22 at 18:23