Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

First of all I'm new to Ubuntu. How do I gain Root privileges in Ubuntu Desktop 12.04? I installed to a usb stick to try it out. I love it! 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. Any help will be appreciated.

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

2 Answers

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.

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

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.