Escalating Linux permissions to root

In the SLXVM Linux shell, you can escalate your default admin access to root access (password protected).

Before you begin

Caution

Caution

A user with SLXVM Linux-shell root permissions can—unintentionally or maliciously—execute commands that can render the SLX inoperable.

Procedure

  1. From the SLX-OS CLI prompt, enter start-shell to access the SLXVM Linux shell.
    device# start-shell
    Entering Linux shell for the user: admUser
    [admUser@SLX]#
    
    You can now execute commands that do not require root permissions.
  2. To escalate your permissions, enter the Linux su root command.
    [admUser@SLX]# su root
    Password: 
    
  3. Enter the root password.
    Password: 
    
    After successful login, the following warning is displayed:
    We trust you have received the usual lecture from the local System
    Administrator. It usually boils down to these three things:
    
        #1) Respect the privacy of others.
        #2) Think before you type.
        #3) With great power comes great responsibility.
    [root@SLX]# 
    
  4. Enter Linux commands and run scripts as needed.
    You can also run SLX-OS commands from the Linux shell.
  5. To exit root level and return to the default SLXVM Linux shell, enter exit.
    [root@SLX]#  exit
    exit
    [admUser@SLX]# 
  6. To exit the default SLXVM Linux shell and return to the SLX-OS CLI, enter exit.
    [admUser@SLX]#  exit
    exit 
    Exited from Linux shell 
    device#