Pages

Linux account (change account)

 Tip: Master and data nodes make same user id in linux.
(because to get same home folder name)

  • Add a new user, e.g. "temporary". If you are still in TTY1 (Ctrl+Alt+F1):
    $ sudo adduser temporary
    
    set the password and just type enter exit. This should bring you to the original login prompt, if not type exit again.
  • 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):
    usermod -l newUsername oldUsername
    To change home-folder, use
    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
Share:

No comments:

Post a Comment

Powered by Blogger.

Popular Posts