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.

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
1  
Info from help.ubuntu.com/community/RootSudo "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: help.ubuntu.com/community/RootSudo#sudo –  mondjunge Aug 27 '12 at 12:25
add comment

3 Answers 3

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
add comment

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
add comment

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
add comment

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.