(because to get same home folder name)
- Add a new user, e.g. "temporary". If you are still in TTY1 (Ctrl+Alt+F1):
set the password and just type enter$ sudo adduser temporaryexit. This should bring you to the original login prompt, if not typeexitagain. - Change the account type of your new temporary user to administrator:
In tty7 (Ctrl+Alt+F7, "normal" desktop) login in to your usual account. Change his privileges through the gui: System settings > users account. Click Unlock then change account type to "administrator". - Log out again.
- Return to tty1: Login with the 'temporary' user account and password.To change username (it is probably best to do this without being logged in):
To change home-folder, useusermod -l newUsername oldUsername
usermod -d /home/newHomeDir -m newUsername exit(until you get the login prompt)- Go back to TTY7 (Ctrl+Alt+F7) to login on the GUI/normal desktop screen and see if this works.
- Delete temporary user and folder:
sudo deluser temporary sudo rm -r /home/temporary
Ref: http://askubuntu.com/questions/34074/how-do-i-change-my-username







No comments:
Post a Comment