当我通过SSHloginNexenta机器时,必须input以下命令:
nmc@nexenta:/$ option expert_mode=1 nmc@nexenta:/$ !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? Yes
我可以login,只是在专家模式已经? 每次这样做都很烦人。
注意:我不想写一个脚本来执行这个每次,这不是真正的解决scheme,我正在寻找。
您可以使expert_mode选项在此处保持不变。 运行option expert_mode = 1 -s 。 -s使设置永久。 从现在开始,你只需要运行!bash从nmc控制台获取一个shell。
你也可以ssh作为admin用户,并在需要时使用su 。
但NexentaStor确实是一个由Web界面或nmc命令行控制台pipe理的设备。 您的原始Unix shell的访问应该是有限的,但是如果您确实需要去那里,您不应该有一个问题input这两个命令来获得访问权限。 我觉得它像sudo 。 目前的NexentaStor警告看起来像这样:
nmc@nexenta:/$ !bash You are about to enter the Unix ("raw") shell and execute low-level Unix command(s). CAUTION: NexentaStor appliance is not a general purpose operating system: managing the appliance via Unix shell is NOT recommended. This management console (NMC) is the command-line interface (CLI) of the appliance, specifically designed for all command-line interactions. Using Unix shell without authorization of your support provider may not be supported and MAY VOID your license agreement. To display the agreement, please use 'show appliance license agreement'. Proceed anyway? (type No to return to the management console) Yes
在bash shell中完成工作以刷新Web控制台的值之后,请务必执行setup appliance nms restart 。