超级用户(sudo根)权限 [英] superuser (sudo root) permissions

查看:495
本文介绍了超级用户(sudo根)权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从@denfromufa通过Twitter:

From @denfromufa via Twitter:

正在发行: https://github.com/Microsoft/AzureNotebooks/issues/112

Referring to issue: https://github.com/Microsoft/AzureNotebooks/issues/112

"我如何从笔记本界面获得sudo根权限?我正在尝试安装一些依赖项,例如clang.

"How do I get sudo root permissions from the notebook interface? I'm trying to install some dependencies such as clang.

也许是这样,但仍不清楚:

maybe this, but still not clear:

https://docs.microsoft.com/zh-CN /azure/virtual-machines/linux/use-root-privileges

"

此外,客户还引用了此问题: https://github.com/Microsoft/AzureNotebooks/issues/114

Additionally the customer also referenced this issue: https://github.com/Microsoft/AzureNotebooks/issues/114

谢谢

@AzureSupport

@AzureSupport

推荐答案

在Jupyter中安装软件的解决方法:

连接到< head>群集的节点,打开一个新的终端会话并输入以下内容:

使用Putty的ssh => sshuser@xxxxxx-ssh.azurehdinsight.net

ssh using Putty => sshuser@xxxxxx-ssh.azurehdinsight.net

#cmd切换为根用户

sudo -i              # cmd to switch as a root user

更改密码以下cmdlet的Spark用户的数量:

  #cmd更改密码

passwd spark  # cmd to change password

添加spark用户作为root用户.

#cmd以adduser为根用户

adduser spark sudo    # cmd to adduser as a root user

                 #重新启动机器

init 6                  # Restarting the machine

现在您可以打开Jupyter终端并安装软件的:

例如: 安装 " clang "使用Jupyter终端的软件.

Example: Installing "clang" software using Jupyter terminal.

--- -------------------------------------------------- ------------------------------------------

-----------------------------------------------------------------------------------------------

请点击标记为答案"在对您有帮助的帖子上,这可能会对其他社区成员有所帮助.


这篇关于超级用户(sudo根)权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆