Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

How do I log in as root? I can't do aptitude unless I am root. I have broken / held packages that I can't install.

share|improve this question

marked as duplicate by Thomas Ward, Radu Rădeanu, Sneetsher, Eric Carvalho, karel May 5 '14 at 23:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 4 down vote accepted

You don't really log in as root directly, but you can use sudo. sudo -i gives you a root prompt, and putting sudo before a command runs it as root. The root account by default on ubuntu is designed to avoid people logging in for security reasons, and also probably because sudo does that task of logging in as root for you - why create extra work for yourself? ;)

share|improve this answer

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