Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to solve (*** Mininet must run as root.) in pycharm?

I'm completely new to Linux and Python. I want to run a mininet python test file using Pycharm but got the following error

*** Mininet must run as root.

How to solve this ?

like image 348
Sana'a Ala'a Avatar asked Feb 03 '26 09:02

Sana'a Ala'a


1 Answers

Become root!!! To run something as root, first you need root privileges, and then have a look at the sudo man page.

First see that you have this access:

sudo mn

If this works then ctrl+c

Then run it like:

sudo python miniedit.py
like image 186
d_kennetz Avatar answered Feb 05 '26 03:02

d_kennetz



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!