Chaning Username in Terminal
#6
Information 
Yeah, you can't change the username if that user is logged in. Basically what is needed to rename/move is:

sudo passwd root [to set the root password]

logout of your account [ie. pine64]

log in to root account [using newly set password]

usermod -l new-login-name -d /home/new-login-name -m pine64 [renames pine64 to new-login-name, moves home directory]

logout out of root, log back in as new-login name

run sudo passwd -l root to lock the root account again if you wish. use passwd (without sudo) to change the password of the newly renamed account if it is still pine64 Wink


Messages In This Thread
Chaning Username in Terminal - by Coyote - 06-30-2017, 03:16 PM
RE: Chaning Username in Terminal - by jordanjay29 - 06-30-2017, 08:40 PM
RE: Chaning Username in Terminal - by Luke - 06-30-2017, 09:00 PM
RE: Chaning Username in Terminal - by zer0sig - 07-01-2017, 08:50 AM
RE: Chaning Username in Terminal - by Coyote - 07-01-2017, 01:57 PM
RE: Chaning Username in Terminal - by pfeerick - 07-03-2017, 03:24 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)