Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My first name is Lluis but always Ubuntu changes my name as Llus when my computer starts as Ubuntu. I don't understand why this 'i' is missed.

share|improve this question
3  
Maybe you typed your username wrong during the account creation at your system? –  Nickolas Jun 19 '13 at 16:18
add comment

2 Answers 2

If you just want to change the name that appears at startup, go to System Settings -> User Accounts.

Click the "Unlock" button at the top right of that box. Then click the name to the right, and retype it.

This won't affect your shell/system username at all, only your display name; if you were looking to change the system username too you will need to do something more along the lines of the other answer... though personally I would say it'd be safer to just make a new account and start over in that case; there could be (non-system) files elsewhere that reference your old username in some fashion or other, and these won't necessarily be updated with your new username if you do change it.

share|improve this answer
add comment

Run:

# Become root
sudo -i

Next, as root, run:

usermod -d /home/new -m old

sed -i -e 's_old_new_g' /etc/passwd

sed -i -e 's_old_new_g' /etc/group

sed -i -e 's_old_new_g' /etc/shadow

Where "old" is your old user name ( Llus ) and "new" is the name you want ( Lluis ).

Log out and back in and you should be good to go.

Note: You might want to use all lower case letters for your user name (lluis) , up to you, see discussion in comments for details.

share|improve this answer
    
Should point out the name should be lower case here –  GM-Script-Writer-62850 Jun 19 '13 at 16:24
    
@GM-Script-Writer-62850 Why ? Upper case user names will work. –  bodhi.zazen Jun 19 '13 at 16:26
    
I think it's for similar legacy reasons to the rule of "username not longer than 8 characters". I don't think it's necessarily a requirement now, but could perhaps cause some compatibility issues with some things. –  Jez W Jun 19 '13 at 16:41
    
In fact, if you try and manually create a new user account containing a capital letter, you get an error message and have to use a "--force-badname" option. (doesn't happen if it's simply long). So yes, all lowercase is safer. –  Jez W Jun 19 '13 at 16:48
    
OK, I've not seen that error. The system identifies users by number not name. –  bodhi.zazen Jun 19 '13 at 16:52
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.