This question already has an answer here:

I am a new Ubuntu user and I am using Ubuntu 14.04. When I try to change root permissions, I get some error reports. I have already tried sudo chown -R 777 / and sudo chmod -R 777 /. Please help me if I am doing any mistakes. Is there any command to access my root folder or root user?

marked as duplicate by Eric Carvalho, Danatela, Rinzwind, BuZZ-dEE, psusi Jun 4 '14 at 21:56

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.


sudo chmod -R 777 / sounds like an incredibly bad idea. If you ran that command successfully, you will probably want to reinstall your system right away, since you made all your files accessible and executable.

Ubuntu systems don't have a root password by default for security reasons. Users in the sudo group can run any commands as root using the sudo command, but you should think twice, because you can (no, you will) break your system if you don't know what you're doing. If you really want a root shell, you can get one with sudo su -. You have been warned. To read more about how to use sudo, please refer to the Official Documentation.

About installing ruby1.8, that's a quite different question. Since ruby1.8 has been removed from the official repositories in 14.04, you will have to use a PPA like this one.

sudo apt-get install python-software-properties
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby1.8

Check out the referenced website for further information.

  • while trying to install ruby1.8. It is showing "Package 'ruby1.8' has no installation candidate". please help me. – Gopikrishna Jun 3 '14 at 10:08
  • Thank you, here i install 1.8 successfully. but for the kind information, dont run the "sudo apt-get update". – Gopikrishna Jun 4 '14 at 8:52

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