本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
xxxxxxxxxx
====== Migrate ======
Migrate Linux from X to Y.
===== Rename user =====
First of all, login with ''root'' , then using ''usermod'' to change username:
<code bash>
usermod -l newUserName -d /home/newUserName -m oldUserName
</code>
> Linux use uid to identify user, so changing username will not affect permissions.
Then, find all broken symlinks and fix it:
find . -xtype l
Last but not least, Search all configurations and change username, I recommand [[https://github.com/BurntSushi/ripgrep|ripgrep]].
<code>
rg oldUserName
===== Reference =====