Skip to main content
SteveJW
New Member
September 12, 2025
Solved

Enable sudo fortiems cli 7.4.4

  • September 12, 2025
  • 2 replies
  • 1256 views

I'm preparing to migrate from FortiEMS 7.2.10 to 7.4.4 in a test HyperV environment
I've downloaded and configured version 7.4.4. I don't have any Linux knowledge.
Now I want to perform the migration steps.
But I'm getting the following error during the first command:

Error: unknown command "sudo" for "emscli"

FortiEMS-Migration.jpg

How can I enable sudo?

 

Best answer by AEK

It seems with this new version (OVF with pre-installed Linux) you don't need sudo. I see you are already in emscli and not in Linux shell (sh, back, csh, ...).

So you should follow this guide:

https://docs.fortinet.com/document/forticlient/7.4.4/ems-administration-guide/867528/migrating-ems-7-2-4-to-7-4-4

You see in the guide that in Linux manually installed version you use sudo, while in your "VM" version you don't use it, but you use a FortiOS-like shell (e.g.: execute, system, config, and so).

Here is the emscli guide:

https://docs.fortinet.com/document/forticlient/7.4.4/ems-cli-reference/965777

2 replies

AEK
SuperUser
AEKAnswer
SuperUser
September 13, 2025

It seems with this new version (OVF with pre-installed Linux) you don't need sudo. I see you are already in emscli and not in Linux shell (sh, back, csh, ...).

So you should follow this guide:

https://docs.fortinet.com/document/forticlient/7.4.4/ems-administration-guide/867528/migrating-ems-7-2-4-to-7-4-4

You see in the guide that in Linux manually installed version you use sudo, while in your "VM" version you don't use it, but you use a FortiOS-like shell (e.g.: execute, system, config, and so).

Here is the emscli guide:

https://docs.fortinet.com/document/forticlient/7.4.4/ems-cli-reference/965777

AEK
SteveJW
SteveJWAuthor
New Member
September 14, 2025

Thank you.
I think this article was released last week.
I had previously read and used version 7.4.3, thinking the procedure would be the same.
I can now continue with the test.
Thanks again

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!