azure bash: sudo: command not found

时间:2019-03-19 14:46:51

标签: bash azure

In tutorial of azure iot edge, there's a sample said that user is able to command "sudo" in Bash, however the other tutorial said that "Permissions are set as regular users without sudo access".

enter image description hereenter image description here

Also when I followed the tutorial command in azure bash(sudo), it didn't work, so I'm wondering if I've missed something?

By the way, the tutorials are all from the Microsoft.

1 个答案:

答案 0 :(得分:0)

这主要是因为您在Debian系统上运行,该系统没有sudo命令添加,请使用以下步骤:

su -

apt-get install sudo -y

此后,您将需要与用户和权限进行交互。将sudo权限授予您自己的用户。

usermod -aG sudo yourusername

相关问题