Difference between revisions of "Open Terminal as root"

From Amahi Wiki
Jump to: navigation, search
 
(6 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
To do that from a remote computer, [[SSHtoHDA|SSH into your HDA]].
 
To do that from a remote computer, [[SSHtoHDA|SSH into your HDA]].
  
Once the Terminal window is open, type the following command ('''NOTE:''' Precede each command with <code>sudo</code> for Ubuntu or Fedora if you did not create a ''root'' password.):
+
'''NOTE:  Precede each command with <code>sudo</code> for Ubuntu and Fedora if you did not create a ''root'' password.'''
 +
 
 +
Once the Terminal window is open, type the following command:
  
 
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
Line 9: Line 11:
 
</div>
 
</div>
  
You'll be asked for the root password:
+
You'll be asked for the root password (for Ubuntu and Fedora, the password is your ''user'' password):
  
 
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
Line 19: Line 21:
  
 
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
[gb@hda ~]$ <strong>su -</strong><br/>
 
Password: <br/>
 
 
[<strong style="color:red">root</strong>@hda ~]#  
 
[<strong style="color:red">root</strong>@hda ~]#  
 +
</div>
 +
 +
To exit back to the standard user:
 +
 +
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px;">
 +
<strong style="color:red">[root</strong>@hda ~]$ exit<br/>
 +
[gb@hda ~]#
 
</div>
 
</div>

Latest revision as of 08:59, 29 April 2017

Sometimes, you'll be asked to open a Terminal window, and become root.

To do that from a remote computer, SSH into your HDA.

NOTE: Precede each command with sudo for Ubuntu and Fedora if you did not create a root password.

Once the Terminal window is open, type the following command:

su -

You'll be asked for the root password (for Ubuntu and Fedora, the password is your user password):

[gb@hda ~]$ su -
Password:

You now have a Terminal open, and you're logged as root:

[root@hda ~]#

To exit back to the standard user:

[root@hda ~]$ exit
[gb@hda ~]#