Difference between revisions of "Root"

From Amahi Wiki
Jump to: navigation, search
Line 9: Line 9:
 
=== How to become root in a console ===
 
=== How to become root in a console ===
  
If you need root permissions, this is how to get them.
+
If you need root privileges, this is how to get them.
  
 
+
* Open a terminal ''aka'' console ''aka'' command prompt.<br>
1. Open a terminal ''aka'' console ''aka'' command prompt.<br>
+
su -
[[File:open terminal.jpg|600px]]<br><br>
+
* You will be asked for the password (you may not see anything echoed on the screen while entering it). When you look at the prompt, you will see that the user name has changed to ''root@localhost'' or something similar.  This indicates you now have root privileges
2. Enter the command ''su''<br>
+
* Do whatever you needed as root
[[File:root rights1.jpg|600px]]<br><br>
+
* When you are done, enter:
You will be asked for the password of the user ''root'', enter it.<br>
+
exit
If you come from Windows, do not expect to see anything while entering it.<br>
 
When you look at the prompt, you will see that the user name has changed to ''root@hdavirtu'', proof that you now have acquired root permissions:<br>
 
[[File:root rights2.jpg|600px]]<br><br>
 
3. Do whatever you needed the root permissions for.<br><br>
 
4. When you are done, type ''exit''<br>
 
[[File:root rights3.jpg|600px]]<br><br>
 
 
You'll notice by looking at the prompt that you are the standard user again.
 
You'll notice by looking at the prompt that you are the standard user again.
  
'''NOTE:'''  Also see [[Open_Terminal_as_root|Open Terminal as Root]].
+
Also see [[Open_Terminal_as_root|Open Terminal as Root]].

Revision as of 21:58, 27 April 2017

tags: root administrator permissions console terminal

Root can mean differrent things in Linux.
The root partition is the partition with you system files in it.
The filesystem root is the ground level of your filesystem, you can go in no deeper.

The user root is the Linux equivalent (more or less) to the Windows Administrator.

How to become root in a console

If you need root privileges, this is how to get them.

  • Open a terminal aka console aka command prompt.
su -
  • You will be asked for the password (you may not see anything echoed on the screen while entering it). When you look at the prompt, you will see that the user name has changed to root@localhost or something similar. This indicates you now have root privileges
  • Do whatever you needed as root
  • When you are done, enter:
exit

You'll notice by looking at the prompt that you are the standard user again.

Also see Open Terminal as Root.