EdgeRouter - Root User Account


Overview


Readers will learn how to access the root user shell and how to allow root login over SSH.

NOTES & REQUIREMENTS:
Applicable to the latest EdgeOS firmware on all EdgeRouter models. Please see the Related Articles below for more information. Device used in this article:

Root User Privileges


Back to Top

The password on the root user account is unset by default. This is a security precaution as it prevents the root account from being used for password-based authentication (SSH/Telnet, GUI, Console).  

Follow the steps below to access the root user shell.

CLI: Access the command line interface (CLI). You can do this using the CLI button in the GUI or by using a program such as PuTTY.

1. Log in using a previously created admin account.

2. Use the sudo statement to elevate the privileges or invoke a root user shell.

ubnt@edgerouter:~$ sudo su

3. Use the exit statement to return to the EdgeOS operational mode prompt. 

root@edgerouter:/home/ubnt# exit

Follow the steps below to set the root user password.

CLI: Access the command line interface (CLI). You can do this using the CLI button in the GUI or by using a program such as PuTTY.

1. Enter configuration mode

2. Set the root user account password.

set system login user root authentication plaintext-password <password>

3.  Allow the root user to login via SSH.

set service ssh allow-root

4. Commit the changes and save the configuration.

commit ; save

Related Articles


Back to Top

Intro to Networking - How to Establish a Connection Using SSH

EdgeRouter - User Accounts

EdgeRouter - Access the CLI from the Web UI


We're sorry to hear that!