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

How do I gain Root privileges in Ubuntu Desktop 12.04? I installed to a usb stick to try it out. Now when I installed it on a VM, I don't have the same options as I did on the usb stick. Such as opening remote desktop, installing drivers, and some of the video capabilities.

share|improve this question
Info from "By default, the Root account password is locked in Ubuntu. This means that you cannot login as Root directly or use the su command to become the Root user." Instead, use sudo... Example: – mondjunge Aug 27 '12 at 12:25

Their are 2 ways to do things with certain pemissions.

sudo lets you run commands in your own user account with root privileges.

su lets you switch user so that you're actually logged in as root. But this options is default disabled. Read this thread for more information.

Use either method only as and when needed, they can cause your system damage if used without caution.

share|improve this answer

This should make you root after you enter your user's password, assuming you were the first account to be created. Be careful when you're root. Only login as root when you really need to, and logout as soon as you're done.

sudo su -

Alternatively you can run specific commands with root privileges by prepending them with sudo. For example:

sudo cp -p foo bar/
share|improve this answer

I strongly recommend you not to gain root permission. you will NEVER EVER need root permission for general usage or small problem fixing, unless you are a linux developer. Root permission will cause you to get in very messy troubles if you don't exactly know what you are doing. Furthermore, root permission will be very dangerous if anyway your computer gets hacked.

share|improve this answer

the best way is:

  • useradd to add a user
  • passwd (pass for the user)
  • usermod -a -G <user> sudo to add users to the sudo group
share|improve this answer

Your Answer


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.