Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rename linux user and their home directory
#1
Question 
First, list you users:
less /etc/passwd

Then, rename the user:
sudo usermod -l newuser olduser

Finally change the home directory and copy the content of the old home:
sudo usermod -d /home/newuser -m newuser
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)