I have changed my username and when I did this,I can not log in with my new user and this error comes in the screen: nautilus could not create the following required folders: /home/"last username"/desktop and /home/'last username'/.nautilus .Also when I press CTRL+ALT+F6 for the command line I can not login with my new username. Although I have still access to Linux by root. My Ubuntu version is 11.04 .
You're going to want to log in as root to do this
Firstly, make sure the home folder of your old username does not exist.
If you see a folder with your old username, issue the command
Then issue the command
If you still can't log in after this, you'll have to edit the /etc/passwd file