Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm absolutely new on Ubuntu.
I was gonna learn Ubuntu, so I installed VMware 7.0.1 build-227600 on my Win7 x64, afterward I've installed Ubuntu 9.10 on it as a Virtual Machine.

I just enabled root account, and when I log in as root for once, I received the following error :

Error activating XKB configuration (Ubuntu 9.10)

What's wrong with it?
Am I miss something?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

First, you should not log in to the graphical environment as root. Could you log in as a normal user? Ubuntu doesn't support logging in as root.

Second, there is a good reason why the root account is disabled in Ubuntu. It is designed so that users that are members of the 'admin' group (e.g. the one user the installer creates) can gain root access with the sudo command. While not recommended, you can enable the root account, and log in to a shell as root, but not to graphical environment. It is good practise to use sudo when you need root access (or gksudo for graphical applications). If you need a root shell to execute several commands as root, you can just open a shell with sudo, for example:

sudo su -

But it is better to simply use sudo for the command you need if you only want to execute a few commands.

Look here for more details: https://help.ubuntu.com/community/RootSudo

share|improve this answer
    
Thanks, Could you log in as a normal user? Yes, I could. –  Mohammad Apr 11 '10 at 18:52

There are a lot of bug reports about this problem. Basically, it all comes down to not logging on to Ubuntu as root, which is a huge security risk, and not advisable at all. I highly suggest you follow petersohn's advice.

share|improve this answer

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.