02.01.2024, 11:40 AM
First, list you users:
Then, rename the user:
Finally change the home directory and copy the content of the old home:
Code:
less /etc/passwd
Then, rename the user:
Code:
sudo usermod -l newuser olduser
Finally change the home directory and copy the content of the old home:
Code:
sudo usermod -d /home/newuser -m newuser