Difference between revisions of "Root"

From Amahi Wiki
Jump to: navigation, search
Line 1: Line 1:
tags: root administrator permissions console terminal
+
Root can mean different things in Linux:<br>
 +
*''root partition'' is the partition with your system files in it.<br>
 +
*''root file system'' is the ground level of your file system.  You can go in no deeper.<br><br>
 +
''root'' user is the Linux equivalent (more or less) to the Windows Administrator.<br>
  
Root can mean differrent things in Linux.<br>
+
= How to become root in a console =
The ''root partition'' is the partition with you system files in it.<br>
+
There are two methods outlined here.
The ''filesystem root'' is the ground level of your filesystem, you can go in no deeper.<br><br>
+
== ''root'' password ==
The user ''root'' is the Linux equivalent (more or less) to the Windows
+
The ''root'' password was set during OS install
Administrator.<br><br>
+
* Open a terminal ''aka'' console also referred to as command prompt:<br>
 +
su -
 +
* You will be asked for the password (you may not see anything echoed on the screen while entering it).
  
=== How to become root in a console ===
+
== ''user'' made an administrator ==
 +
The ''user'' was made an administrator during OS install
 +
* Open a terminal ''aka'' console also referred to as command prompt:<br>
 +
sudo su -
 +
* You will be asked for the password (you may not see anything echoed on the screen while entering it).  This will be the one for your user. 
  
If you need root privileges, this is how to get them.
 
  
* Open a terminal ''aka'' console ''aka'' command prompt.<br>
+
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
su -
+
* Do whatever you needed as ''root''
* 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:
 
* When you are done, enter:
 
  exit
 
  exit

Revision as of 00:30, 28 April 2017

Root can mean different things in Linux:

  • root partition is the partition with your system files in it.
  • root file system is the ground level of your file system. You can go in no deeper.

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

How to become root in a console

There are two methods outlined here.

root password

The root password was set during OS install

  • Open a terminal aka console also referred to as command prompt:
su -
  • You will be asked for the password (you may not see anything echoed on the screen while entering it).

user made an administrator

The user was made an administrator during OS install

  • Open a terminal aka console also referred to as command prompt:
sudo su -
  • You will be asked for the password (you may not see anything echoed on the screen while entering it). This will be the one for your user.


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.