How to enable SUDO on Azure Debian webapp ?

Hans Baumhardt 0 Reputation points
2025-02-03T12:31:08.89+00:00

Upgraded a Azure Linux webapp from PHP8 to PHP8.3 as required by an on screen portal admin notification.

The SUDO management command no longer works in an SSH session.

-bash: sudo: command not found

Apparently PHP8.3 is now a DEBIAN Linux build which does not include SUDO.

Trying to install sudo fails:

su -

apt-get install sudo -y

E: Unable to locate package sudo

yeah, thanks Microsoft.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,243 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.