How do I rename a user in Linux?

How do I rename a user in Linux?
Answer
Otherwise, you just (1) create a new user and (2) rsync the old user home folder to the new and then (3) chown it. Generally you can rename a user by changing their username in the /etc/passwd (and /etc/shadow , if applicable) files.
 

Tìm kiếm

Back
Top