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.

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 W., Radu Rădeanu, Sneetsher, Eric Carvalho, karel May 5 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.

1 Answer 1

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.