In Unix/Linux the root account is the account which has absolute control over everything, a more detailed description of it can be found at wikipedia. By default you can access root priviledges by prefixing the command you wish to execute with “sudo“. This will allow you to perform the command you wish by then entering the password for the account you setup when installing Ubuntu. A problem with this is that it uses the same password as your user account, therefore potentially decreasing the level of security. An alternative to the “sudo” command is “su“, although you cannot use this command by default. To overcome this you need to change the root user’s password by using the following command:
sudo passwd root
This will then prompt for you to enter the password which you wish to use, although nothing appears on the screen please remember that it is still being inputted. Below is a screeenshot of what will appear on screen.
Activating the root account now gives you three options for performing “root”/administrative tasks.
- To continue using the “sudo” command, this is probably the most secure, as this will give you root priviledges just for the command which it is followed by.
- The “su” command will make you root user by providing a password, so all actions will be performed as the root user, this is less secure since a simple typo could potentially destroy the whole server, although you can revert back to your standard user priviledges simply by using the “exit” command.
- You can log in as the root user, using the username root and password which you just set. This is definately the least secure, since every command that you run has full priviledges to access any part of the computer, although it is significantly more convenient if you know what you are doing.
Now that you have the ability to root access in the server, you are able to have much more control and are able to install and modify software & settings.




3 users commented in " Root Account "
Follow-up comment rss or Leave a Trackback[…] for this task you will require root priviledges so follow the instructions set out in this previous post. I will be using the sudo command, since it is probably best practice to do […]
I have read ur blogs and they are helpful, but how can i make a shared folder?
Hi,
Thanks for contacting us about this, making more tutorials for what people want is something which we have been wanting to do for a while, but nobody has told us what they want to know!
I just want to ask, before I write about this, what exactly do you mean by a shared folder, are you meaning you want to run your Ubuntu server as a file server, and want to allow windows machines to browse files on it, or do you mean something else. Please post another comment just to let me know, and I’ll be on to it right away!
Lee
Leave A Reply