Nexenta QuickTip: Get a real root shell

The Nexenta folks have spent a lot of energy making Nexenta “idiot-proof”.  You really can do almost everything you need from the web based GUI.  There’s a few more things you can do from the character based Nexenta Management Console (NMC).  Sometimes, though, you may want a shell…

When you log in as root on a Nexenta box, you get the nmc.

People that really like to break things fiddle like an honest to goodness root shell.  If you really want a shell, then do:

[glporter@workstation ~]$ ssh root@my_filer
Password:
Last login: Wed Jun 2 11:34:10 2010 from workstation
nmc@my_filer:/$ option expert_mode = 1                                          

nmc@my_filer:/$ !bash                                                           
You are about to enter the Unix ("raw") shell
and execute low-level Unix command(s).
Warning: using low-level Unix commands is not
recommended! Execute?  (y/n) <press y>

root@my_filer:/volumes# <do special root-ish things here>
root@my_filer:/volumes# exit
exit

Important: To re-sync the appliance's management
state information, please consider running
'setup appliance nms restart' command.

nmc@my_filer:/$

Probably is a good idea to run ‘setup appliance nms restart’, seeing as they told you to…

    • Gustav Brock
    • December 16th, 2010

    Thanks! Exactly what I was looking for.

    • Alexandre
    • January 15th, 2012

    This command didn’t work for me in NexentaStor 3.1.1 I had to run the following command before it:

    $ option expert_mode=1
    $ !bash
    Warning: “raw” shell
    #

    • daveStyle
    • June 26th, 2012

    Great stuff. Thanks for that.

    • Scott
    • June 28th, 2012

    thank you

    • Ben
    • May 16th, 2013

    If on the shell you login as ‘admin’ you get right into the shell. if you login as root you goto the NMS menu, just FYI

    • Ron
    • October 24th, 2013

    option expert_mode=1 -s -s makes it stick
    option bang_confirm=0 -s doesn’t ask you
    !bash

  1. July 18th, 2012