Created
March 9, 2014 01:55
-
-
Save l0neranger/9441808 to your computer and use it in GitHub Desktop.
Rename User and Move Home Directory [Debian/Ubuntu]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usermod -l newusername -d /home/newusername -m oldusername | |
groupmod -n newusername oldusername |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment