Ubuntu – How to become root?

command line

Possible Duplicate:
How to know my root password?

I have been trying for a week and a half trying to become root so I can change the motd for an assignment and I have had no luck. Can someone break it down into linux for dummies style please. I have done every update for ubuntu 12.04 do not know if this why it is giving me a hard time? Thank you in advance for your help.

Best Answer

I would recommend trying it through command line.

First, open up terminal. Then enter this command sudo su and press enter. It will prompt for your password. After entering the password, everything that you are doing WITHIN THE TERMINAL is being done as you as root. I emphasized that to show that anything you do outside of the terminal will NOT be root.

So, to edit the motd, type this into terminal: gedit /etc/motd and edit your file accordingly.

Related Question