Results 1 to 8 of 8

Thread: change login name

  1. #1
    Join Date
    Mar 2007
    Location
    Lagos, Portugal
    Beans
    75
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    change login name

    hi just wondered if it's possible to change my login name

  2. #2
    Join Date
    Mar 2006
    Location
    United Kingdom
    Beans
    1,164
    Distro
    Ubuntu Development Release

    Re: change login name

    Type in your terminal:

    man usermod
    It explains it all
    Bob
    _____________________________________________
    I used to be very indecisive, but now I am not so sure.

  3. #3
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: change login name

    Edited: There are ways to do this without copying the home folder, so I'm going to defer to bobnutfield's advice...
    Last edited by drs305; August 1st, 2008 at 08:38 PM.
    Back to Xorg...

    Retired.

  4. #4
    Join Date
    Aug 2007
    Location
    Chicago, IL, USA
    Beans
    1,429
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: change login name


  5. #5
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,804
    Distro
    Ubuntu Development Release

    Re: change login name

    Quote Originally Posted by petegreenhorn View Post
    hi just wondered if it's possible to change my login name
    You can change your username by booting into the recovery console, then giving the command
    Code:
    usermod -l newname -m -d /home/newname oldname
    this will change your username from oldname to newname, create an appropriate home folder, and copy your files into the new home folder, and set permissions and ownerships accordingly.

    You need to do this in the recovery console because usermod will not allow changes to the name of a logged-in user.

    Note that this may still cause problems; eg. any cron jobs etc setup in the old username will not be migrated automatically.

    In short, unless you have a compelling reason to change the name, don't do it.
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  6. #6
    Join Date
    Aug 2010
    Beans
    14

    Re: change login name

    prshah: I would like to try this, but I do not know how to boot into the "recovery console". Do you hit a special combination of keys while booting up or what?

  7. #7
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,770

    Re: change login name

    Quote Originally Posted by diacad View Post
    prshah: I would like to try this, but I do not know how to boot into the "recovery console". Do you hit a special combination of keys while booting up or what?
    i expect you will get moved to your own thread but you can do it by pressing shift if you have single mode.

    if it is a dual boot then choose recovery from menu
    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

  8. #8
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,616
    Distro
    Ubuntu

    Re: change login name

    Please don't bump old threads to the top.

    Make your own thread

    Closed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •