linux如何把uid变成对应的用户名

2025-04-07 01:42:06
推荐回答(2个)
回答1:

新建:useradd uid
修改:usermod -l 新的用户名 -d /home/NewUser -m 老的用户名

回答2:

grep 你的uid /etc/passwd