Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

azure bash: sudo: command not found

Tags:

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.

like image 452
Johnny Avatar asked Oct 14 '25 03:10

Johnny


1 Answers

This is mainly because you were running on a Debian system, which does not come with the sudo command to add it use the following steps:

su -

apt-get install sudo -y

After that you would need to play around with users and permissions. Give sudo right to your own user.

usermod -aG sudo yourusername

like image 195
Novak254 Avatar answered Oct 18 '25 12:10

Novak254



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!