Ubuntu configures sudo with full rights for the user that is created during setup (users added later must be configured manually; this is because otherwise they could do anything they wanted). To do something with root privileges, use
or
The difference between these is that 'sudo' asks for your password in the command line, whereas 'gksudo' pops up a graphical box asking for it. So if you wanted to edit the menu.lst file, you could do something like this:
- open a terminal and run
Code:
sudo gedit /boot/grub/menu.lst
- hit ALT+F2 to bring up the Run dialog and run
Code:
gksudo gedit /boot/grub/menu.lst
When asked, type in your password and you'll get the file opened (gk/sudo makes you run the command with root privileges). If you use 'sudo' or 'gksudo' many times in a short time, you'll probably be asked for the password only once (it remembers it for a moment).
If you insist on having a root account, you can do that as well -- simply set a known password for root (type this in terminal):
Though I don't recommend doing that, as sudo is already configured and it's basically all you need -- if you needed to be logged in as root, you could do that with sudo as well, for example