Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu rename user login

#As root / or as another user. 
# Kill the processes of the user to rename
pkill -u <OldLoginName>

#Rename user login
usermod -l <OldLoginName> <NewLoginName>

#Rename HomeDir 

sudo usermod -d /home/NewHomeDir -m NewLoginName
 
PREVIOUS NEXT
Tagged: #ubuntu #rename #user #login
ADD COMMENT
Topic
Name
4+6 =